We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324f98b commit 8ec1327Copy full SHA for 8ec1327
lsp/astro.lua
@@ -1,6 +1,6 @@
1
local function get_typescript_server_path(root_dir)
2
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 ''
+ return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or ''
4
end
5
6
---@brief
0 commit comments