|
@@ -7,6 +7,12 @@ vim.api.nvim_create_autocmd('TermOpen', {
|
|
|
end
|
|
|
})
|
|
|
|
|
|
+-- leave insert when terminal process exits
|
|
|
+-- this prevents the window from closing
|
|
|
+vim.api.nvim_create_autocmd('TermClose', {
|
|
|
+ command = 'stopinsert',
|
|
|
+})
|
|
|
+
|
|
|
-- automatically enter/leave terminal mode
|
|
|
vim.api.nvim_create_autocmd('TermOpen', { command = 'startinsert' })
|
|
|
vim.api.nvim_create_autocmd({'WinEnter','BufWinEnter'}, {
|