zoomwintab.vim
zoomwintab.vim copied to clipboard
Deleting buffer when zoomed in causes bufferline.nvim to become hidden permanently
I use bufferline.nvim, and encounter a slight issue with this plugin. I'll go right ahead and state that this is user error, but it would be awesome if this plugin dealt with the situation properly.
If I zoom into a window, forget that I'm in that window (I'll admit, I get into this situation because of user error), and then close/delete that buffer (I've tried this with just :bd but it also happens with smart-q which I use for "smart closing" buffers), I've inadvertently hidden the bufferline and cannot get it back.
For context, zooming out typically does not cause this issue with the bufferline - when "zoomed in", the tabline goes away, but "zooming out" restores the bufferline.
Any chance this could be fixed?
@macintacos unfortunetly I'm not familiar with bufferline.nvim but I'll take a look and will tell you if it can be fixed or not
Thanks! Is there a way to tell whether or not I'm "zoomed in" and then map "q" to zooM out instead of closing the buffer? That'd probably solve it for me.
@macintacos something like maybe
nmap q :if exists('t:zoomwintab') | call zoomwintab#Out() | else | normal! q | endif