feat(config): add nvim_tree config setting

This commit is contained in:
Matt Leong 2021-11-29 14:19:54 -08:00
parent e9e84bb645
commit f6c4a9d2cb
2 changed files with 8 additions and 1 deletions

View file

@ -68,4 +68,10 @@ config.lsp = {
ts_utils = {},
}
config.nvim_tree = {
view = {
width = 50,
},
}
return config

View file

@ -1,5 +1,6 @@
local g = vim.g
local icons = require('cosmic.core.theme.icons')
local config = require('cosmic.config')
-- settings
g.nvim_tree_git_hl = 1
@ -40,4 +41,4 @@ local args = {
},
}
require('nvim-tree').setup(args)
require('nvim-tree').setup(vim.tbl_deep_extend('force', args, config.nvim_tree or {}))