Auto-close the info window, when closing the current buffer. #143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an attempt to make vim close if you exit while the info window is open; feel free to suggest ideas/alternatives/etc, this is basically a draft, but it is working well for me.
Note that there is a bug, I suppose, that it actually closes all quickfix windows upon exiting a single buffer, which is not ideal, because maybe you have a different split with a buffer and an info window for that open; in which case exiting one buffer closes all info windows.
I suppose to fix that one would need to identify the present buffer and match them based on names.
Is that important enough to do? Does anyone else even want this functionality at all?
This was inspired by: https://github.com/nvim-tree/nvim-tree.lua/wiki/Auto-Close#ppwwyyxx but I didn't bother with the additional complication :)
Notes:
Sync
type, otherwise the present (last) buffer closes too fast and vim gets upset with E444: Cannot close last window.cc @googleson78 .