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 { use {
"kyazdani42/nvim-tree.lua", "kyazdani42/nvim-tree.lua",
disable = not plugin_settings.status.nvimtree, 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" }, cmd = plugin_settings.options.nvimtree.lazy_load and { "NvimTreeToggle", "NvimTreeFocus" },
config = override_req("nvim_tree", "plugins.configs.nvimtree"), config = override_req("nvim_tree", "plugins.configs.nvimtree"),
setup = function() setup = function()