Fix dependency problem

require 'nvim-web-devicons' fails if colors.setup done in plugin/. This
may be related to loading order.
This commit is contained in:
RedBug312 2021-02-19 20:06:30 +08:00 committed by Kiyan
parent c9ed6c804b
commit 3bd96e3caa
2 changed files with 1 additions and 2 deletions

View File

@ -215,6 +215,7 @@ function M.xdg_open()
end))
end
colors.setup()
vim.defer_fn(M.on_enter, 1)
return M

View File

@ -8,8 +8,6 @@ if get(g:, 'nvim_tree_disable_netrw', 1) == 1
let g:loaded_netrwPlugin = 1
endif
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
autocmd! FileExplorer *