From 033b465f34ae4150471303f766554010bb62d814 Mon Sep 17 00:00:00 2001 From: kiyan Date: Sun, 13 Dec 2020 16:52:23 +0100 Subject: [PATCH] add RM state and ' A' to hl groups --- lua/lib/renderer.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/lib/renderer.lua b/lua/lib/renderer.lua index 47d68b3d..3fdd6807 100644 --- a/lua/lib/renderer.lua +++ b/lua/lib/renderer.lua @@ -1,4 +1,3 @@ -local colors = require'lib.colors' local config = require'lib.config' local utils = require'lib.utils' @@ -80,7 +79,7 @@ if vim.g.lua_tree_git_hl == 1 then }, ["AD"] = { { hl = "LuaTreeFileStaged" }, - { hl = "LuaTreeFileDeleted" } + { hl = "LuaTreeFileDeleted" } }, ["AM"] = { { hl = "LuaTreeFileStaged" }, @@ -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" } },