feat(nvim): auto-enter terminal mode on terminal focus

This commit is contained in:
2026-10-07 08:54:28 +03:00
parent 71d06b8c41
commit 67fff22a05
@@ -6,3 +6,12 @@
--
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
-- enter terminal mode whenever a terminal buffer is focused
vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter", "WinEnter" }, {
group = vim.api.nvim_create_augroup("term_autoinsert", { clear = true }),
pattern = "term://*",
callback = function()
vim.cmd("startinsert")
end,
})