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 a61763f commit c4b93dbCopy full SHA for c4b93db
lua/nvim-tree/explorer/filters.lua
@@ -24,15 +24,17 @@ local function git(path, git_status)
24
end
25
26
-- default status to clean
27
- local status = git_status.files[path] or git_status.dirs[path] or " "
+ local status = git_status.files[path]
28
+ status = status or git_status.dirs.direct[path] and git_status.dirs.direct[path][1]
29
+ status = status or git_status.dirs.indirect[path] and git_status.dirs.indirect[path][1]
30
31
-- filter ignored; overrides clean as they are effectively dirty
32
if M.config.filter_git_ignored and status == "!!" then
33
return true
34
35
36
-- filter clean
- if M.config.filter_git_clean and status == " " then
37
+ if M.config.filter_git_clean and not status then
38
39
40
0 commit comments