From f3bacd14628f68f8bdb9f20c6b2d53ae2dcba237 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 18 Feb 2024 02:05:43 +0100 Subject: [PATCH] fix tmux for nvim --- dot_config/tmux/tmux.conf.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dot_config/tmux/tmux.conf.tmpl b/dot_config/tmux/tmux.conf.tmpl index 26e9189..af33e87 100644 --- a/dot_config/tmux/tmux.conf.tmpl +++ b/dot_config/tmux/tmux.conf.tmpl @@ -21,6 +21,10 @@ bind -n M-Down select-pane -D set -g mouse on +# nvim fixes +set -sg escape-time 300 +set -g focus-events on + # don't rename windows automatically set-option -g allow-rename off @@ -45,8 +49,8 @@ bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel bind P paste-buffer # color support -set -g default-terminal "xterm-256color" -set -ga terminal-overrides ",xterm-256color:Tc" +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",tmux-256color:Tc" bind u capture-pane \;\ save-buffer /tmp/tmux-buffer \;\