nvimtree: Allow changing lazy load from chadrc | Resolve https://github.com/NvChad/NvChad/issues/621

a packerCompile is needed after changin the config value in chadrc
pull/679/head
Akianonymus 3 years ago committed by siduck
parent 7be01383ab
commit a2d91acc84

@ -79,6 +79,8 @@ M.plugins = {
},
nvimtree = {
enable_git = 0,
-- packerCompile required after changing lazy_load
lazy_load = true,
ui = {
allow_resize = true,

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

Loading…
Cancel
Save