aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAn Hoang <xuanan2001@pm.me>2023-06-05 07:48:56 +0700
committerGitHub <noreply@github.com>2023-06-05 08:48:56 +0800
commit664de12a7816dfa348bb475607edfa4fe0122025 (patch)
treebc11a6e72fd2c152d68395337172b0ec7d701193
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar.gz
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar.bz2
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar.lz
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar.xz
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.tar.zst
nvim-lspconfig-664de12a7816dfa348bb475607edfa4fe0122025.zip
fix(astro): correct the typescript.tsdk path (#2649)
It's supposed to be a path to the TypeScript server folder, not a file.
-rw-r--r--lua/lspconfig/server_configurations/astro.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/astro.lua b/lua/lspconfig/server_configurations/astro.lua
index 6a70c680..c28dcb6e 100644
--- a/lua/lspconfig/server_configurations/astro.lua
+++ b/lua/lspconfig/server_configurations/astro.lua
@@ -2,8 +2,7 @@ local util = require 'lspconfig.util'
local function get_typescript_server_path(root_dir)
local project_root = util.find_node_modules_ancestor(root_dir)
- return project_root and (util.path.join(project_root, 'node_modules', 'typescript', 'lib', 'tsserverlibrary.js'))
- or ''
+ return project_root and (util.path.join(project_root, 'node_modules', 'typescript', 'lib')) or ''
end
return {