config-astronvim/lua/custom/autocmds/terminal.lua
2024-05-22 16:08:23 +02:00

7 lines
225 B
Lua

vim.api.nvim_create_autocmd("TermOpen", {
desc = "Auto switch to insert mode for terminal",
group = vim.api.nvim_create_augroup("term_auto_insert", { clear = true }),
pattern = "term://*",
command = "startinsert",
})