mhinz / neovim-remote

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

Fix / Workaround: Trigger TermLeave autocommands when in Terminal mode #151

Open kogapf opened 4 years ago

kogapf commented 4 years ago

hi there

i use ur plugin. however, my nvim config is such that when i leave Terminal Mode, i have numbers on the left and vise versa. this didn't work with opening a file with nvr inside a Terminal inside nvim.

i do not know whether this is a bug in neovim api itself that TermLeave event is not triggered, but i suspect so..

what this change does: detect whether were inside a terminal emulator. if so, leave terminal mode, then do as usual

best regards