From 6010d916df3231f02936d4ee32bce65f93eba3d4 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sat, 30 Nov 2024 14:01:19 +0100 Subject: [PATCH] fix: return string instead of table for find_mercurial_ancestor --- lua/lspconfig/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index 06718eb293..c0a0805265 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