diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-11-30 14:01:19 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-11-30 14:07:10 +0100 |
| commit | 7b0a2f6b14485bb5a237fc1328a487ff3e4a08c5 (patch) | |
| tree | 83dc3d87f561327cf55d5299f8c0c2768401de11 | |
| parent | refactor: deprecate util.find_mercurial_ancestor (diff) | |
| download | nvim-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
| -rw-r--r-- | lua/lspconfig/util.lua | 4 |
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 |
