Skip to content

Commit f9a676d

Browse files
committed
Highlight new, tracked files in working copy
Currently nvim-tree doesn't highlight new, tracked files in the working copy/directory. This change assigns the `NvimTreeGitFileNewHL` highlight to the `" A"` git porcelain status marker.
1 parent dd2364d commit f9a676d

File tree

1 file changed

+1
-1
lines changed
  • lua/nvim-tree/renderer/decorator

1 file changed

+1
-1
lines changed

lua/nvim-tree/renderer/decorator/git.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function GitDecorator:build_file_folder_hl_by_xy()
131131
["RM"] = "NvimTreeGitFileRenamedHL",
132132
[" R"] = "NvimTreeGitFileRenamedHL",
133133
["!!"] = "NvimTreeGitFileIgnoredHL",
134-
[" A"] = "none",
134+
[" A"] = "NvimTreeGitFileNewHL",
135135
}
136136

137137
self.folder_hl_by_xy = {}

0 commit comments

Comments
 (0)