Skip to content
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

Deleting buffer when zoomed in causes bufferline.nvim to become hidden permanently #14

Open
macintacos opened this issue Nov 29, 2021 · 3 comments

Comments

@macintacos
Copy link

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?

@troydm
Copy link
Owner

troydm commented Nov 29, 2021

@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

@macintacos
Copy link
Author

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.

@troydm
Copy link
Owner

troydm commented Nov 29, 2021

@macintacos something like maybe

nmap q :if exists('t:zoomwintab') | call zoomwintab#Out() | else | normal! q | endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants