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
This commit is contained in:
parent
7be01383ab
commit
a2d91acc84
2 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue