-
-
Notifications
You must be signed in to change notification settings - Fork 618
refactor(#2828): multi instance nvim-tree.explorer.filters #2841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Testing: map an enable for testing vim.keymap.set('n', 'Z', api.tree.toggle_enable_filters, opts('Toggle All Filters')) live filter OK
defaults, toggle each simple filter and enabled OK vim.keymap.set('n', 'Z', api.tree.toggle_enable_filters, opts('Toggle All Filters'))
filters = {
enable = true,
git_ignored = true,
dotfiles = false,
git_clean = false,
no_buffer = false,
no_bookmark = false,
custom = {},
exclude = {},
}, exclude OK exclude = { 'CREDITS' }, custom OK custom = { 'MAINTAINERS' }, custom function NO custom = function(absolute_path)
print(vim.inspect(absolute_path))
return absolute_path:match('.*config.*')
end, it looks like we're passing the node rather than the path
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just fantastic - making great progress and setting the patterns.
Small change and we're good to merge.
Co-authored-by: Alexander Courtis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love your work!
🎉 |
fixes #2828