From 8ec13272adff99d3d2249f669853d78c7e973d3a Mon Sep 17 00:00:00 2001 From: glepnir Date: Thu, 17 Apr 2025 14:09:55 +0800 Subject: 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 --- lsp/astro.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp/astro.lua') 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 -- cgit v1.2.3-70-g09d2