-
Notifications
You must be signed in to change notification settings - Fork 16
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
[request] Callback or event for when there's no next buffer #18
Comments
Allowing that sort of configuration is hard since this plugin doesn't use a |
How about an event? something like |
Why not just use the builtin |
That will also be called when renaming a buffer, which screws up alpha-nvim (dashboard plugin). Probably there's a workaround for that 🤷 This request is just to add some ergonomics to this plugin though |
Done, it's been added |
Thank you! an implementation: goolord/alpha-nvim#85 (comment) |
Please expose a config field or aucmd event to customize the behaviour when the last buffer is closed. For example, a user may want to open their dashboard plugin when closing all buffers.
Current:
README.md
Desired
or
Alternatives
This is possible without changing bufdelete.nvim:
But then the user needs to import and call that function anywhere they want this behaviour, for example in bufferline.nvim config:
But this means the user has to remember each callsite. An event or callback field would allow the user to write that function once and use it automatically wherever.
The text was updated successfully, but these errors were encountered: