Skip to content

Commit 8ec1327

Browse files
authored
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
1 parent 324f98b commit 8ec1327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp/astro.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local function get_typescript_server_path(root_dir)
22
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
3-
return project_root and (project_root .. '/node_modules/typescript/lib') or ''
3+
return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or ''
44
end
55

66
---@brief

0 commit comments

Comments
 (0)