config-astronvim/lua/custom/autocmds/terminal.lua
2024-05-17 19:55:13 +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",
})