aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/manager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/manager.lua')
-rw-r--r--lua/lspconfig/manager.lua2
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)