From 73b514e0901a8d6a302ea9cdc90be4d3fc80f045 Mon Sep 17 00:00:00 2001 From: kiyan Date: Mon, 17 May 2021 21:46:39 +0200 Subject: [PATCH] fix: update git state --- lua/nvim-tree/renderer.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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" }, },