aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/astro.lua2
-rw-r--r--lua/lspconfig/configs/volar.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/configs/astro.lua b/lua/lspconfig/configs/astro.lua
index 23c3f760..106d247f 100644
--- a/lua/lspconfig/configs/astro.lua
+++ b/lua/lspconfig/configs/astro.lua
@@ -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 {
diff --git a/lua/lspconfig/configs/volar.lua b/lua/lspconfig/configs/volar.lua
index b180f1a9..ff52aed5 100644
--- a/lua/lspconfig/configs/volar.lua
+++ b/lua/lspconfig/configs/volar.lua
@@ -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