add RM state and ' A' to hl groups
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
local colors = require'lib.colors'
|
|
||||||
local config = require'lib.config'
|
local config = require'lib.config'
|
||||||
local utils = require'lib.utils'
|
local utils = require'lib.utils'
|
||||||
|
|
||||||
@@ -95,6 +94,8 @@ if vim.g.lua_tree_git_hl == 1 then
|
|||||||
{ hl = "LuaTreeFileDeleted" },
|
{ hl = "LuaTreeFileDeleted" },
|
||||||
{ hl = "LuaTreeFileStaged" }
|
{ hl = "LuaTreeFileStaged" }
|
||||||
},
|
},
|
||||||
|
[" A"] = { { hl = "none" } },
|
||||||
|
["RM"] = { { hl = "LuaTreeFileRenamed" } },
|
||||||
dirty = { { hl = "LuaTreeFileDirty" } },
|
dirty = { { hl = "LuaTreeFileDirty" } },
|
||||||
}
|
}
|
||||||
get_git_hl = function(node)
|
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" } },
|
["??"] = { { icon = icon_state.icons.git_icons.untracked, hl = "LuaTreeGitDirty" } },
|
||||||
["R "] = { { icon = icon_state.icons.git_icons.renamed, hl = "LuaTreeGitRenamed" } },
|
["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" } },
|
["UU"] = { { icon = icon_state.icons.git_icons.unmerged, hl = "LuaTreeGitMerge" } },
|
||||||
[" D"] = { { icon = icon_state.icons.git_icons.deleted, hl = "LuaTreeGitDeleted" } },
|
[" D"] = { { icon = icon_state.icons.git_icons.deleted, hl = "LuaTreeGitDeleted" } },
|
||||||
dirty = { { icon = icon_state.icons.git_icons.unstaged, hl = "LuaTreeGitDirty" } },
|
dirty = { { icon = icon_state.icons.git_icons.unstaged, hl = "LuaTreeGitDirty" } },
|
||||||
|
|||||||
Reference in New Issue
Block a user