Avoid colors.setup() being deferred
This commit is contained in:
parent
48cd6a1ad3
commit
25208ed91d
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user