Repository navigation
|
I mapped |
Replies: 4 comments 4 replies
|
I think this is a useless improvement as there are other commands like Also, if it was the last buffer and you didn't notice, you can simply open another file and the lsp will continue to work. However with your suggestion, you will have to wait tens of seconds again to wait the lsp. |
|
The above explains why this is the intended behaviour well, I will convert this to discussion so you can discuss alternatives but I don't think we want to change the behaviour of |
|
Here is the nvim plugin implementation: https://github.com/psjay/buffer-closer.nvim demo.mp4Personally, I think having a command that exits on the last buffer makes sense. It falls in line with exiting when closing the last window. |
I am not saying to change the behaviour of
buffer-close, just add another command likebuffer-close-and-quitand also same for force quitbuffer-close-and-quit!. It will work very similar to less command if you mapbuffer-close-and-quittoq