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

@@ -23,6 +23,8 @@ local out_config = {
"nvim_tree_bindings",
"nvim_tree_disable_keybindings",
"nvim_tree_disable_default_keybindings",
"nvim_tree_hide_dotfiles",
"nvim_tree_ignore"
}
local x = vim.tbl_filter(function(v)
@@ -30,6 +32,6 @@ local x = vim.tbl_filter(function(v)
end, out_config)
if #x > 0 then
local msg = "following options are now set in the setup (:help nvim-tree.setup): "
require'nvim-tree.utils'.echo_warning(msg..table.concat(x, " | "))
local msg = "Following options were moved to setup (:help nvim-tree.setup): "
require'nvim-tree.utils'.echo_warning(msg..table.concat(x, ", "))
end