Skip to content

Commit

Permalink
fix: return string instead of table for find_mercurial_ancestor
Browse files Browse the repository at this point in the history
  • Loading branch information
dundargoc committed Nov 30, 2024
1 parent e869c7e commit 7b0a2f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7b0a2f6

Please sign in to comment.