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

@@ -561,12 +561,12 @@ function M.parent_node(node, should_close)
end
function M.toggle_ignored()
pops.show_ignored = not pops.show_ignored
pops.config.filter_ignored = not pops.config.filter_ignored
return M.refresh_tree()
end
function M.toggle_dotfiles()
pops.show_dotfiles = not pops.show_dotfiles
pops.config.filter_dotfiles = not pops.config.filter_dotfiles
return M.refresh_tree()
end