Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim: Improve conditions for automatic insert mode on TermOpen
When a terminal buffer is opened (TermOpen), for example, by `:term`, we would want to automatically enter the insert mode. However, the existing autocmd may result in the non-terminal buffer unwantedly entering the insert mode when a new terminal buffer is opened on a floating window. To prevent this, we can enter the insert mode only if the current window has the terminal buffer being opened. See nvim-neotest/neotest#2 for reference.
- Loading branch information