add RM state and ' A' to hl groups

This commit is contained in:
kiyan 2020-12-13 16:52:23 +01:00
parent 7e6177b8ff
commit 033b465f34

View File

@ -1,4 +1,3 @@
local colors = require'lib.colors'
local config = require'lib.config'
local utils = require'lib.utils'
@ -95,6 +94,8 @@ if vim.g.lua_tree_git_hl == 1 then
{ hl = "LuaTreeFileDeleted" },
{ hl = "LuaTreeFileStaged" }
},
[" A"] = { { hl = "none" } },
["RM"] = { { hl = "LuaTreeFileRenamed" } },
dirty = { { hl = "LuaTreeFileDirty" } },
}
get_git_hl = function(node)
@ -136,6 +137,10 @@ if icon_state.show_git_icon then
},
["??"] = { { icon = icon_state.icons.git_icons.untracked, hl = "LuaTreeGitDirty" } },
["R "] = { { icon = icon_state.icons.git_icons.renamed, hl = "LuaTreeGitRenamed" } },
["RM"] = {
{ icon = icon_state.icons.git_icons.unstaged, hl = "LuaTreeGitDirty" },
{ icon = icon_state.icons.git_icons.renamed, hl = "LuaTreeGitRenamed" },
},
["UU"] = { { icon = icon_state.icons.git_icons.unmerged, hl = "LuaTreeGitMerge" } },
[" D"] = { { icon = icon_state.icons.git_icons.deleted, hl = "LuaTreeGitDeleted" } },
dirty = { { icon = icon_state.icons.git_icons.unstaged, hl = "LuaTreeGitDirty" } },