config-astronvim/lua/user/autocmds/terminal.lua
2023-11-02 18:29:29 +01: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",
})