mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.73k stars 83 forks source link

--remote-*wait hard to use, because it waits for BufDelete #193

Open ElectronicRU opened 1 year ago

ElectronicRU commented 1 year ago

There's no configuration for "hidden" option that allows 'nvr' to simply exit on window/tab with the file being closed. By default, the buffer will become either hidden or unloaded. This means for my "commit" to work properly, I have to remembed to end editing with :w :bd instead of :wq.

My suggestion is to wait for BufUnload or BufHide instead of BufDelete. I see little downside, especially for the first option.

gbtb commented 10 months ago

+1 for this feature. So far I'm using nvr as an $EDITOR with --remote-tab-wait option, and I've patched sources to use TabClosed event. This simple patch allows me to quickly exit from nested nvims with :wq https://github.com/gbtb/neovim-remote/commit/e1bbb0ab95674cbe2526bb35b8f17c97ab131849.patch