add edge-cases around deleting/staging

This commit is contained in:
Zach Coyle 2020-10-13 22:59:12 -04:00 committed by Kiyan Yazdani
parent 640d147d70
commit 47cd138808

View File

@ -78,6 +78,10 @@ if vim.g.lua_tree_git_hl == 1 then
{ hl = "LuaTreeFileStaged" },
{ hl = "LuaTreeFileNew" }
},
["AD"] = {
{ hl = "LuaTreeFileStaged" },
{ hl = "LuaTreeFileDeleted" }
},
["AM"] = {
{ hl = "LuaTreeFileStaged" },
{ hl = "LuaTreeFileNew" },
@ -87,6 +91,10 @@ if vim.g.lua_tree_git_hl == 1 then
["R "] = { { hl = "LuaTreeFileRenamed" } },
["UU"] = { { hl = "LuaTreeFileMerge" } },
[" D"] = { { hl = "LuaTreeFileDeleted" } },
["D "] = {
{ hl = "LuaTreeFileDeleted" },
{ hl = "LuaTreeFileStaged" }
},
dirty = { { hl = "LuaTreeFileDirty" } },
}
get_git_hl = function(node)