nvim: lsp-utils: Use new vim.fs.root function for getting root directory
38b9c322c9
This commit is contained in:
parent
41f25229dc
commit
cb46c82d53
1 changed files with 1 additions and 3 deletions
|
@ -65,9 +65,7 @@ end
|
|||
-- End of deno specific functions
|
||||
|
||||
local get_root_directory = function(root_files)
|
||||
local path = vim.fs.find(root_files, { type = "file" })
|
||||
|
||||
return vim.fs.dirname(path[1])
|
||||
return vim.fs.root(0, root_files)
|
||||
end
|
||||
|
||||
local default_capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
|
|
Loading…
Reference in a new issue