chore: refacto populate filtering

move `nvim_tree_ignore` and `nvim_tree_hide_dotfiles` to setup
This commit is contained in:
kiyan
2021-10-30 12:25:09 +02:00
parent f92b7e7627
commit a6c1d45dd6
6 changed files with 83 additions and 90 deletions

View File

@@ -436,6 +436,10 @@ local DEFAULT_OPTS = {
error = "",
}
},
filters = {
dotfiles = false,
custom_filter = {}
}
}
function M.setup(conf)
@@ -464,6 +468,7 @@ function M.setup(conf)
require'nvim-tree.colors'.setup()
require'nvim-tree.view'.setup(opts.view or {})
require'nvim-tree.diagnostics'.setup(opts)
require'nvim-tree.populate'.setup(opts)
setup_autocommands(opts)
setup_vim_commands()