Skip to content

Commit b933ae8

Browse files
committed
fix(git): add DD and AU git statuses
1 parent 64aacb6 commit b933ae8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lua/nvim-tree/renderer.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ if vim.g.nvim_tree_git_hl == 1 then
105105
{ hl = "NvimTreeFileStaged" },
106106
{ hl = "NvimTreeFileNew" }
107107
},
108+
["AU"] = {
109+
{ hl = "NvimTreeFileMerge" },
110+
{ hl = "NvimTreeFileStaged" },
111+
},
108112
-- not sure about this one
109113
["AA"] = {
110114
{ hl = "NvimTreeFileMerge" },
@@ -126,6 +130,7 @@ if vim.g.nvim_tree_git_hl == 1 then
126130
["UU"] = { { hl = "NvimTreeFileMerge" } },
127131
["UD"] = { { hl = "NvimTreeFileMerge" } },
128132
[" D"] = { { hl = "NvimTreeFileDeleted" } },
133+
["DD"] = { { hl = "NvimTreeFileDeleted" } },
129134
["D "] = {
130135
{ hl = "NvimTreeFileDeleted" },
131136
{ hl = "NvimTreeFileStaged" }
@@ -182,6 +187,10 @@ if icon_state.show_git_icon then
182187
{ icon = icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
183188
{ icon = icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
184189
},
190+
["AU"] = {
191+
{ icon = icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
192+
{ icon = icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
193+
},
185194
["AM"] = {
186195
{ icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
187196
{ icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" }
@@ -196,6 +205,7 @@ if icon_state.show_git_icon then
196205
["UD"] = { { icon = icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" } },
197206
[" D"] = { { icon = icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" } },
198207
["D "] = { { icon = icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" } },
208+
["DD"] = { { icon = icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" } },
199209
["DU"] = {
200210
{ icon = icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" },
201211
{ icon = icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },

0 commit comments

Comments
 (0)