aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/util.lua')
-rw-r--r--lua/lspconfig/util.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index cc97867f..4bd82b5b 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -378,17 +378,17 @@ function M.path.exists(filename)
return stat and stat.type or false
end
---- @deprecated use `vim.fs.find('.hg', { path = startpath, upward = true })[1]` instead
+--- @deprecated use `vim.fs.dirname(vim.fs.find('.hg', { path = startpath, upward = true })[1])` instead
function M.find_mercurial_ancestor(startpath)
return vim.fs.dirname(vim.fs.find('.hg', { path = startpath, upward = true })[1])
end
---- @deprecated use `vim.fs.find('node_modules', { path = startpath, upward = true })[1]` instead
+--- @deprecated use `vim.fs.dirname(vim.fs.find('node_modules', { path = startpath, upward = true })[1])` instead
function M.find_node_modules_ancestor(startpath)
return vim.fs.dirname(vim.fs.find('node_modules', { path = startpath, upward = true })[1])
end
---- @deprecated use `vim.fs.find('package.json', { path = startpath, upward = true })[1]` instead
+--- @deprecated use `vim.fs.dirname(vim.fs.find('package.json', { path = startpath, upward = true })[1])` instead
function M.find_package_json_ancestor(startpath)
return vim.fs.dirname(vim.fs.find('package.json', { path = startpath, upward = true })[1])
end