fix vim.g.nvim_tree_git_hl is not work (#232)

- it doest not disable git status reloading
This commit is contained in:
Levi Rizki Saputra 2021-03-15 01:29:01 +07:00 committed by GitHub
parent 784bba77c5
commit 4c46d2b192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ function M.refresh_tree()
refresh_nodes(M.Tree)
if config.get_icon_state().show_git_icon or vim.g.nvim_tree_git_hl then
if config.get_icon_state().show_git_icon or vim.g.nvim_tree_git_hl == 1 then
git.reload_roots()
refresh_git(M.Tree)
end