diff options
Diffstat (limited to 'lua/lspconfig/configs/lua_ls.lua')
| -rw-r--r-- | lua/lspconfig/configs/lua_ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/lua_ls.lua b/lua/lspconfig/configs/lua_ls.lua index 64b81449..abdef096 100644 --- a/lua/lspconfig/configs/lua_ls.lua +++ b/lua/lspconfig/configs/lua_ls.lua @@ -20,7 +20,7 @@ return { return root end local root_lua = util.root_pattern 'lua/'(fname) or '' - local root_git = util.find_git_ancestor(fname) or '' + local root_git = vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) or '' if root_lua == '' and root_git == '' then return end |
