add some options for nvimtree

This commit is contained in:
siduck 2021-12-12 08:49:40 +05:30
parent d2db2cc1cd
commit 7c9bf9cbe3
2 changed files with 12 additions and 7 deletions

View File

@ -79,6 +79,12 @@ M.plugins = {
},
nvimtree = {
enable_git = 0,
ui = {
allow_resize = true,
side = "left",
width = 25,
},
},
luasnip = {
snippet_path = {},

View File

@ -1,5 +1,9 @@
local present, nvimtree = pcall(require, "nvim-tree")
local git_status = require("core.utils").load_config().plugins.options.nvimtree.enable_git
local conf = require("core.utils").load_config().plugins.options.nvimtree
local git_status = conf.enable_git
local ui = conf.ui
if not present then
return
@ -62,12 +66,7 @@ nvimtree.setup {
enable = true,
update_cwd = false,
},
view = {
allow_resize = true,
side = "left",
width = 25,
},
view = ui,
git = {
ignore = false,
},