diff --git a/lua/nvim-tree/renderer.lua b/lua/nvim-tree/renderer.lua index 7a08572f..73e76b02 100644 --- a/lua/nvim-tree/renderer.lua +++ b/lua/nvim-tree/renderer.lua @@ -98,7 +98,9 @@ if vim.g.nvim_tree_git_hl == 1 then }, ["AD"] = { { hl = "NvimTreeFileStaged" }, - { hl = "NvimTreeFileDeleted" } + }, + ["MD"] = { + { hl = "NvimTreeFileStaged" }, }, ["AM"] = { { hl = "NvimTreeFileStaged" }, @@ -143,9 +145,15 @@ if icon_state.show_git_icon then { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" }, { icon = icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } }, + ["MD"] = { + { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" }, + }, ["A "] = { { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" }, }, + ["AD"] = { + { icon = icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" }, + }, [" A"] = { { icon = icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" }, },