From: Samir Benmendil Date: Wed, 17 Jan 2024 23:09:49 +0000 (+0000) Subject: nvim: only switch terminal to insert mode if it is focused X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/054d29207b5cfb9faa4e51ab73e3fc24817658e1?hp=054d29207b5cfb9faa4e51ab73e3fc24817658e1 nvim: only switch terminal to insert mode if it is focused A terminal may be opened in a floating window, but the insert command would be applied to the current window. This was an issue with neotest and nvim-dap, where in some instance it would switch to insert mode. See https://github.com/nvim-neotest/neotest/issues/2#issuecomment-1149532666 ---