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 | cd2674862db20aa95c56aaf9113c2c844a8c251e (patch) | |
| tree | 614ade89ce43c3b62581d9fa9655505148260631 /.config/nvim/init.lua | |
| parent | e61627d5756fb3612a6a8dd6f34714baf12df4df (diff) | |
| download | dotfiles-cd2674862db20aa95c56aaf9113c2c844a8c251e.tar.gz dotfiles-cd2674862db20aa95c56aaf9113c2c844a8c251e.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 '.config/nvim/init.lua')
| -rw-r--r-- | .config/nvim/init.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index e1140f0..dfea272 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -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 |
