From 830ec3893eeb2b21d182864b56931ca6d23d3e29 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Tue, 26 Nov 2024 22:42:28 +0100 Subject: refactor: remove internal implementation of `util.path.sanitize` #3464 Return value from `vim.fs.normalize` instead. --- lua/lspconfig/manager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lspconfig/manager.lua') diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua index 45a9e425..16bf17c0 100644 --- a/lua/lspconfig/manager.lua +++ b/lua/lspconfig/manager.lua @@ -157,7 +157,7 @@ end ---@param bufnr integer ---@param silent boolean function M:add(root_dir, single_file, bufnr, silent) - root_dir = util.path.sanitize(root_dir) + root_dir = vim.fs.normalize(root_dir) local new_config = self.make_config(root_dir) self:_start_client(bufnr, new_config, root_dir, single_file, silent) end @@ -199,7 +199,7 @@ function M:try_add(bufnr, project_root, silent) return end - local buf_path = util.path.sanitize(bufname) + local buf_path = vim.fs.normalize(bufname) local get_root_dir = self.config.root_dir