nvimtree: Load after nvim-web-devicons when lazy load disabled

this is necessary as nvimtree depends on nvim-web-devicons

follow up commit for a2d91ac
This commit is contained in:
Akianonymus 2021-12-26 10:04:19 +05:30 committed by siduck
parent 60212005cb
commit 331754a890

View File

@ -205,7 +205,8 @@ return packer.startup(function()
use {
"kyazdani42/nvim-tree.lua",
disable = not plugin_settings.status.nvimtree,
-- only set cmd if lazy load is enabled
-- only set "after" if lazy load is disabled and vice versa for "cmd"
after = not plugin_settings.options.nvimtree.lazy_load and "nvim-web-devicons",
cmd = plugin_settings.options.nvimtree.lazy_load and { "NvimTreeToggle", "NvimTreeFocus" },
config = override_req("nvim_tree", "plugins.configs.nvimtree"),
setup = function()