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 <alex@courtis.org>
This commit is contained in:
Julien Vincent 2025-08-10 06:00:38 +01:00 committed by GitHub
parent a4699c0904
commit 0a52012d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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