fix: handle CM git status
This commit is contained in:
@@ -103,6 +103,7 @@ if vim.g.nvim_tree_git_hl == 1 then
|
|||||||
local git_hl = {
|
local git_hl = {
|
||||||
["M "] = { { hl = "NvimTreeFileStaged" } },
|
["M "] = { { hl = "NvimTreeFileStaged" } },
|
||||||
[" M"] = { { hl = "NvimTreeFileDirty" } },
|
[" M"] = { { hl = "NvimTreeFileDirty" } },
|
||||||
|
["CM"] = { { hl = "NvimTreeFileDirty" } },
|
||||||
["C "] = { { hl = "NvimTreeFileStaged" } },
|
["C "] = { { hl = "NvimTreeFileStaged" } },
|
||||||
[" C"] = { { hl = "NvimTreeFileDirty" } },
|
[" C"] = { { hl = "NvimTreeFileDirty" } },
|
||||||
[" T"] = { { 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" } },
|
[" 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.staged, hl = "NvimTreeGitStaged" } },
|
||||||
[" C"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
|
[" 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" } },
|
[" T"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
|
||||||
["MM"] = {
|
["MM"] = {
|
||||||
{ icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
|
{ icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
|
||||||
|
|||||||
Reference in New Issue
Block a user