famiu/bufdelete.nvim

[Feature] Always open empty buffer when closing a buffer

TylerBarnes opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I find it jarring when I have 2 buffers open in a split and upon closing one I now see the same file twice (once in each window)

Describe the solution you'd like
It'd be great if there was an option to allow the closed window to always be replaced with an empty buffer instead of another open buffer.

Describe alternatives you've considered
I checked the docs but didn't see anything related to this

famiu commented

This is out of scope for the plugin. If you want this, you need to implement it using the BDeletePre and BDeletePost autocommands.