summaryrefslogtreecommitdiffstats
path: root/.config/tmux
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-22 11:46:08 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-22 11:46:08 +0200
commit1fb329fc26bfe119dd48b99dba300af87048a132 (patch)
treea64c4d6d71420bdd17f9278079a76da631d4029f /.config/tmux
parent047fae7cd3e921922aeb628230dbf75b52c43117 (diff)
downloaddotfiles-1fb329fc26bfe119dd48b99dba300af87048a132.tar.gz
dotfiles-1fb329fc26bfe119dd48b99dba300af87048a132.zip
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.
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 3a6be99..434bcf0 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -15,6 +15,8 @@ set-option -g window-status-format "[#I | #{p18:#{=/18/…:window_n
set-option -g window-status-current-format "[ ▶ #I | #{p18:#{=/18/…:window_name}#{?window_flags,#F,}}]"
set-option -g window-status-current-style "bold"
+set-option -g focus-events on
+
unbind C-b
set-option -g prefix C-Space
bind-key C-space send-prefix