aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/robotframework_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/configs/robotframework_ls.lua')
-rw-r--r--lua/lspconfig/configs/robotframework_ls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/robotframework_ls.lua b/lua/lspconfig/configs/robotframework_ls.lua
index e5d09a7f..934fb8c2 100644
--- a/lua/lspconfig/configs/robotframework_ls.lua
+++ b/lua/lspconfig/configs/robotframework_ls.lua
@@ -6,7 +6,7 @@ return {
filetypes = { 'robot' },
root_dir = function(fname)
return util.root_pattern('robotidy.toml', 'pyproject.toml', 'conda.yaml', 'robot.yaml')(fname)
- or util.find_git_ancestor(fname)
+ or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
end,
},
docs = {