chore: add "C " and " C" git statuses (copied)

fixes #755
This commit is contained in:
kiyan 2021-10-30 11:21:13 +02:00
parent c4ecf4416b
commit 2298b63fff

View File

@ -103,6 +103,8 @@ if vim.g.nvim_tree_git_hl == 1 then
local git_hl = {
["M "] = { { hl = "NvimTreeFileStaged" } },
[" M"] = { { hl = "NvimTreeFileDirty" } },
["C "] = { { hl = "NvimTreeFileStaged" } },
[" C"] = { { hl = "NvimTreeFileDirty" } },
[" T"] = { { hl = "NvimTreeFileDirty" } },
["MM"] = {
{ hl = "NvimTreeFileStaged" },
@ -175,6 +177,8 @@ if icon_state.show_git_icon then
local git_icon_state = {
["M "] = { { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" } },
[" M"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
["C "] = { { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" } },
[" C"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
[" T"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
["MM"] = {
{ icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },