Avoid colors.setup() being deferred
This commit is contained in:
@@ -133,7 +133,6 @@ function M.on_enter()
|
|||||||
local should_open = vim.g.nvim_tree_auto_open == 1 and
|
local should_open = vim.g.nvim_tree_auto_open == 1 and
|
||||||
((is_dir and (hijack_netrw == 1 or disable_netrw == 1)) or bufname == '') and
|
((is_dir and (hijack_netrw == 1 or disable_netrw == 1)) or bufname == '') and
|
||||||
not vim.tbl_contains(ft_ignore, buftype)
|
not vim.tbl_contains(ft_ignore, buftype)
|
||||||
colors.setup()
|
|
||||||
lib.init(should_open, should_open)
|
lib.init(should_open, should_open)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ if get(g:, 'nvim_tree_disable_netrw', 1) == 1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
hi def link NvimTreePopup Normal
|
hi def link NvimTreePopup Normal
|
||||||
|
lua require'nvim-tree'.reset_highlight()
|
||||||
|
|
||||||
augroup NvimTree
|
augroup NvimTree
|
||||||
if get(g:, 'nvim_tree_hijack_netrw', 1) == 1 && get(g:, 'nvim_tree_disable_netrw', 1) == 0
|
if get(g:, 'nvim_tree_hijack_netrw', 1) == 1 && get(g:, 'nvim_tree_disable_netrw', 1) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user