mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-10 11:06:10 +02:00
fix(astro,volar): correct 'typescript/lib' path for TypeScript LSP initialization (#3585)
* fix(astro): correct path to locate typescript/lib in Neovim * fix(volar): correct path to locate typescript/lib in Neovim
This commit is contained in:
parent
b4d65bce97
commit
e5bf88e5ea
@ -2,7 +2,7 @@ local util = require 'lspconfig.util'
|
||||
|
||||
local function get_typescript_server_path(root_dir)
|
||||
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
|
||||
return project_root and (project_root .. '/typescript/lib') or ''
|
||||
return project_root and (project_root .. '/node_modules/typescript/lib') or ''
|
||||
end
|
||||
|
||||
return {
|
||||
|
||||
@ -2,7 +2,7 @@ local util = require 'lspconfig.util'
|
||||
|
||||
local function get_typescript_server_path(root_dir)
|
||||
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
|
||||
return project_root and (project_root .. '/typescript/lib') or ''
|
||||
return project_root and (project_root .. '/node_modules/typescript/lib') or ''
|
||||
end
|
||||
|
||||
-- https://github.com/vuejs/language-tools/blob/master/packages/language-server/lib/types.ts
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user