2 Commits
Author SHA1 Message Date
andwati 67fff22a05 feat(nvim): auto-enter terminal mode on terminal focus 2026-10-07 08:54:28 +03:00
andwati 71d06b8c41 chore(nvim): track lazyvim.json 2026-10-07 08:43:09 +03:00
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"extras": [
],
"install_version": 8,
"news": {
"NEWS.md": "11866"
},
"version": 8
}
@@ -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,
})