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.
This commit is contained in:
Julien Vincent 2025-08-06 10:55:24 +02:00
parent dd2364d680
commit f9a676d143
No known key found for this signature in database

View File

@ -131,7 +131,7 @@ function GitDecorator:build_file_folder_hl_by_xy()
["RM"] = "NvimTreeGitFileRenamedHL", ["RM"] = "NvimTreeGitFileRenamedHL",
[" R"] = "NvimTreeGitFileRenamedHL", [" R"] = "NvimTreeGitFileRenamedHL",
["!!"] = "NvimTreeGitFileIgnoredHL", ["!!"] = "NvimTreeGitFileIgnoredHL",
[" A"] = "none", [" A"] = "NvimTreeGitFileNewHL",
} }
self.folder_hl_by_xy = {} self.folder_hl_by_xy = {}