From 3eaab290c73c139d890e5da8a99dc76c274e03d5 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:48:35 +0100 Subject: refactor: remove implementation of util.path.dirname #3460 Instead, just return the result of vim.fs.dirname. --- lua/lspconfig/manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lspconfig/manager.lua') 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) -- cgit v1.2.3-70-g09d2