We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 000ca6b commit 4425136Copy full SHA for 4425136
lua/nvim-tree/git/init.lua
@@ -193,9 +193,10 @@ function M.get_toplevel(path)
193
end
194
195
196
- -- attempt to fetch toplevel
+ -- attempt to fetch toplevel, cache if untracked
197
local toplevel, git_dir = git_utils.get_toplevel(path)
198
if not toplevel or not git_dir then
199
+ M._toplevels_by_path[path] = false
200
return nil
201
202
local toplevel_norm = vim.fn.fnamemodify(toplevel, ":p")
0 commit comments