Skip to content

Commit 0a52012

Browse files
feat(#2685): highlight git new tracked with NvimTreeGitFileNewHL (#3176)
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. Co-authored-by: Alexander Courtis <[email protected]>
1 parent a4699c0 commit 0a52012

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)