From 550ba704b6d0fabd3ac0077c2c1067029c8a0264 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Fri, 22 May 2026 11:46:08 +0200 Subject: misc(nvim): reload buffer when its file changed on disk Bump 'updatetime' to 1 second because it affects three things: - swap file save frequency - GitGutter signs update frequency - CursorHold and CursorHoldI trigger frequency 100ms is too high of a frequency. Enable focus events in tmux for nvim 'FocusGained' event, Add two event handlers, one for updating the buffer with `checktime`, another for logging a message when doing so. --- plugin/50-git.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugin/50-git.lua') diff --git a/plugin/50-git.lua b/plugin/50-git.lua index 609ab93..64e6cd0 100644 --- a/plugin/50-git.lua +++ b/plugin/50-git.lua @@ -4,8 +4,6 @@ vim.pack.add({ "https://github.com/airblade/vim-gitgutter" }) -- Show git status in the gutter -vim.opt.updatetime = 100 -- How often the git signs in the gutter update in ms - vim.keymap.set("n", "gt", "GitGutterLineHighlightsToggle", { desc = "Toggle git line highlighting" }) vim.keymap.set("n", "gg", "GitGutter", { desc = "Refresh GitGutter" }) vim.keymap.set("n", "gq", "GitGutterQuickFix", { desc = "Git hunks to quickfix list" }) -- cgit v1.3.1