aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-11-30 14:01:19 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-11-30 14:07:10 +0100
commit7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5 (patch)
tree83dc3d87f561327cf55d5299f8c0c2768401de11 /lua/lspconfig/util.lua
parentrefactor: deprecate util.find_mercurial_ancestor (diff)
downloadnvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar.gz
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar.bz2
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar.lz
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar.xz
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.tar.zst
nvim-lspconfig-7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5.zip
fix: return string instead of table for find_mercurial_ancestor
Diffstat (limited to 'lua/lspconfig/util.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