aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/astro.lua
diff options
context:
space:
mode:
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