fix: update git state

This commit is contained in:
kiyan
2021-05-17 21:46:39 +02:00
parent 6c9927180f
commit 73b514e090

View File

@@ -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" },
},