Skip to content

Commit 2298b63

Browse files
committed
chore: add "C " and " C" git statuses (copied)
fixes #755
1 parent c4ecf44 commit 2298b63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/nvim-tree/renderer/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ if vim.g.nvim_tree_git_hl == 1 then
103103
local git_hl = {
104104
["M "] = { { hl = "NvimTreeFileStaged" } },
105105
[" M"] = { { hl = "NvimTreeFileDirty" } },
106+
["C "] = { { hl = "NvimTreeFileStaged" } },
107+
[" C"] = { { hl = "NvimTreeFileDirty" } },
106108
[" T"] = { { hl = "NvimTreeFileDirty" } },
107109
["MM"] = {
108110
{ hl = "NvimTreeFileStaged" },
@@ -175,6 +177,8 @@ if icon_state.show_git_icon then
175177
local git_icon_state = {
176178
["M "] = { { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" } },
177179
[" M"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
180+
["C "] = { { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" } },
181+
[" C"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
178182
[" T"] = { { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
179183
["MM"] = {
180184
{ icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },

0 commit comments

Comments
 (0)