diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-02 14:59:19 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-02 14:59:19 +0200 |
| commit | 5ee6dfab36b38f31e13a1910a8117589bdd82df9 (patch) | |
| tree | 781601cd8b0660cb495abdefb33731a32ccc9763 /init.lua | |
| parent | a3e45c7355d7a901a59a7e43a866c5d761c64f87 (diff) | |
| download | nvim-config-5ee6dfab36b38f31e13a1910a8117589bdd82df9.tar.gz nvim-config-5ee6dfab36b38f31e13a1910a8117589bdd82df9.zip | |
misc(nvim): don't start terminal mode automatically
It's annoying because it scrolls to the prompt so I'd rather start
insert mode manually.
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -54,16 +54,6 @@ vim.api.nvim_create_autocmd("TextYankPost", { end, }) --- Start terminal mode automatically -vim.api.nvim_create_autocmd({ "WinEnter", "TermOpen" }, { - desc = "Start terminal mode", - group = vim.g.dotfiles.augroup, - pattern = "term://*", - callback = function() - vim.cmd.startinsert() - end, -}) - -- Reload file when changed outside of nvim vim.opt.autoread = false -- Must be false for FileChangedShell to trigger when the buffer was not changed -- The manual says that FileChangedShell is triggered on FocusGained but it's not true. This function actually triggers |
