Avoid colors.setup() being deferred

This commit is contained in:
RedBug312 2021-02-13 23:48:46 +08:00 committed by Kiyan
parent 48cd6a1ad3
commit 25208ed91d
2 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,6 @@ function M.on_enter()
local should_open = vim.g.nvim_tree_auto_open == 1 and
((is_dir and (hijack_netrw == 1 or disable_netrw == 1)) or bufname == '') and
not vim.tbl_contains(ft_ignore, buftype)
colors.setup()
lib.init(should_open, should_open)
end

View File

@ -9,6 +9,7 @@ if get(g:, 'nvim_tree_disable_netrw', 1) == 1
endif
hi def link NvimTreePopup Normal
lua require'nvim-tree'.reset_highlight()
augroup NvimTree
if get(g:, 'nvim_tree_hijack_netrw', 1) == 1 && get(g:, 'nvim_tree_disable_netrw', 1) == 0