fix update git hl on refresh even if git icons are disabled

This commit is contained in:
kyazdani42 2020-10-24 09:07:07 +02:00
parent 48d433d059
commit b55cc721da

View File

@ -122,7 +122,7 @@ function M.refresh_tree()
-- if stat.mtime.sec ~= M.Tree.last_modified then -- if stat.mtime.sec ~= M.Tree.last_modified then
refresh_nodes(M.Tree) refresh_nodes(M.Tree)
-- end -- end
if config.get_icon_state().show_git_icon then if config.get_icon_state().show_git_icon or vim.g.lua_tree_git_hl then
git.reload_roots() git.reload_roots()
refresh_git(M.Tree) refresh_git(M.Tree)
end end