From 10a0f3d4d26c0789a112dbdc288bd4243536d576 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Wed, 27 Nov 2024 21:15:26 +0100 Subject: [PATCH] fix: Use vim.fs.normalize instead of using a helper from lspconfig --- lua/typescript-tools/tsserver_provider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/typescript-tools/tsserver_provider.lua b/lua/typescript-tools/tsserver_provider.lua index 2a6b7f5..c615324 100644 --- a/lua/typescript-tools/tsserver_provider.lua +++ b/lua/typescript-tools/tsserver_provider.lua @@ -64,7 +64,7 @@ function TsserverProvider.new(on_loaded) assert(util.bufname_valid(bufname), "Invalid buffer name!") - local sanitized_bufname = util.path.sanitize(bufname) + local sanitized_bufname = vim.fs.normalize(bufname) self.root_dir = Path:new(config.get_root_dir(sanitized_bufname, bufnr)) self.npm_local_path = find_deep_node_modules_ancestor(sanitized_bufname):joinpath "node_modules"