fix: handle CM git status
This commit is contained in:
parent
9b9059f5a3
commit
3916c0fc60
@ -103,6 +103,7 @@ if vim.g.nvim_tree_git_hl == 1 then
|
||||
local git_hl = {
|
||||
["M "] = { { hl = "NvimTreeFileStaged" } },
|
||||
[" M"] = { { hl = "NvimTreeFileDirty" } },
|
||||
["CM"] = { { hl = "NvimTreeFileDirty" } },
|
||||
["C "] = { { hl = "NvimTreeFileStaged" } },
|
||||
[" C"] = { { hl = "NvimTreeFileDirty" } },
|
||||
[" T"] = { { hl = "NvimTreeFileDirty" } },
|
||||
@ -179,6 +180,7 @@ if icon_state.show_git_icon then
|
||||
[" 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" } },
|
||||
["CM"] = { { 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" },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user