From b55cc721dac807b01ee2eb32b448d244311f68c8 Mon Sep 17 00:00:00 2001 From: kyazdani42 Date: Sat, 24 Oct 2020 09:07:07 +0200 Subject: [PATCH] fix update git hl on refresh even if git icons are disabled --- lua/lib/lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lib/lib.lua b/lua/lib/lib.lua index 313707fd..08b6553f 100644 --- a/lua/lib/lib.lua +++ b/lua/lib/lib.lua @@ -122,7 +122,7 @@ function M.refresh_tree() -- if stat.mtime.sec ~= M.Tree.last_modified then refresh_nodes(M.Tree) -- 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() refresh_git(M.Tree) end