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 = { nvimtree = {
enable_git = 0, enable_git = 0,
ui = {
allow_resize = true,
side = "left",
width = 25,
},
}, },
luasnip = { luasnip = {
snippet_path = {}, snippet_path = {},

View File

@ -1,5 +1,9 @@
local present, nvimtree = pcall(require, "nvim-tree") 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 if not present then
return return
@ -62,12 +66,7 @@ nvimtree.setup {
enable = true, enable = true,
update_cwd = false, update_cwd = false,
}, },
view = { view = ui,
allow_resize = true,
side = "left",
width = 25,
},
git = { git = {
ignore = false, ignore = false,
}, },