diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-11-26 22:42:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 13:42:28 -0800 |
| commit | 830ec3893eeb2b21d182864b56931ca6d23d3e29 (patch) | |
| tree | bddf3b5be5c9886642dcaa8cd78569e5eb4cc28f /lua/lspconfig/manager.lua | |
| parent | ci: check for deprecated util functions #3462 (diff) | |
| download | nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar.gz nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar.bz2 nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar.lz nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar.xz nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.tar.zst nvim-lspconfig-830ec3893eeb2b21d182864b56931ca6d23d3e29.zip | |
refactor: remove internal implementation of `util.path.sanitize` #3464
Return value from `vim.fs.normalize` instead.
Diffstat (limited to 'lua/lspconfig/manager.lua')
| -rw-r--r-- | lua/lspconfig/manager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
