aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/astro.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-04-17 14:09:55 +0800
committerGitHub <noreply@github.com>2025-04-17 14:09:55 +0800
commit8ec13272adff99d3d2249f669853d78c7e973d3a (patch)
treeabcf9ddc3059c3d338c882a29c54646660642a40 /lsp/astro.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar.gz
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar.bz2
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar.lz
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar.xz
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.tar.zst
nvim-lspconfig-8ec13272adff99d3d2249f669853d78c7e973d3a.zip
fix(astro): using vim.fs.jointhpath concat path (#3741)
Problem: hardcord path symbol in get_typescript_server_path Solution: using vim.fs.joinpath to concat path
Diffstat (limited to 'lsp/astro.lua')
-rw-r--r--lsp/astro.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/astro.lua b/lsp/astro.lua
index c9b076cf..d6f43825 100644
--- a/lsp/astro.lua
+++ b/lsp/astro.lua
@@ -1,6 +1,6 @@
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 .. '/node_modules/typescript/lib') or ''
+ return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or ''
end
---@brief