From ba3af27de036d55e1667cf7909d6dc32c09df66d Mon Sep 17 00:00:00 2001 From: Nathan Wallace Date: Fri, 1 Oct 2021 21:50:17 -0500 Subject: [PATCH] add config option to disable nvimtree --- lua/core/default_config.lua | 3 ++- lua/plugins/init.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 92f47b0..1425bf3 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -57,7 +57,7 @@ M.ui = { -- these are plugin related options M.plugins = { -- enable and disable plugins (false for disable) - status = { + status = { autosave = false, -- to autosave files blankline = true, -- show code scope with symbols bufferline = true, -- list open buffers up the top, easy switching too @@ -73,6 +73,7 @@ M.plugins = { truezen = false, -- distraction free & minimalist UI mode vim_matchup = true, -- % operator enhancements cmp = true, + nvimtree = true, }, options = { lspconfig = { diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 04fc7d6..2183750 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -252,6 +252,7 @@ return packer.startup(function() -- file managing , picker etc use { "kyazdani42/nvim-tree.lua", + disable = not status.nvimtree, cmd = { "NvimTreeToggle", "NvimTreeFocus" }, config = override_req("nvim_tree", "plugins.configs.nvimtree"), setup = function()