aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index 06718eb2..c0a08052 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -396,9 +396,9 @@ function M.path.exists(filename)
return stat and stat.type or false
end
---- @deprecated use `vim.fs.find('.hg', { path = startpath, upward = true })` instead
+--- @deprecated use `vim.fs.find('.hg', { path = startpath, upward = true })[1]` instead
function M.find_mercurial_ancestor(startpath)
- return vim.fs.find('.hg', { path = startpath, upward = true })
+ return vim.fs.find('.hg', { path = startpath, upward = true })[1]
end
return M