diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-11-26 15:48:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 06:48:35 -0800 |
| commit | 3eaab290c73c139d890e5da8a99dc76c274e03d5 (patch) | |
| tree | 4f1228698e34004ac296e41c980c6a027f3c0663 /lua/lspconfig/manager.lua | |
| parent | Revert "fix: check existing_client support workspaceFolder (#3452)" (#3459) (diff) | |
| download | nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar.gz nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar.bz2 nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar.lz nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar.xz nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.tar.zst nvim-lspconfig-3eaab290c73c139d890e5da8a99dc76c274e03d5.zip | |
refactor: remove implementation of util.path.dirname #3460
Instead, just return the result of vim.fs.dirname.
Diffstat (limited to 'lua/lspconfig/manager.lua')
| -rw-r--r-- | lua/lspconfig/manager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua index d5db2833..45a9e425 100644 --- a/lua/lspconfig/manager.lua +++ b/lua/lspconfig/manager.lua @@ -220,7 +220,7 @@ function M:try_add(bufnr, project_root, silent) if root_dir then self:add(root_dir, false, bufnr, silent) elseif self.config.single_file_support then - local pseudo_root = #bufname == 0 and pwd or util.path.dirname(buf_path) + local pseudo_root = #bufname == 0 and pwd or vim.fs.dirname(buf_path) self:add(pseudo_root, true, bufnr, silent) end end) |
