fix tmux for nvim

This commit is contained in:
Gabriel Augendre 2024-02-18 02:05:43 +01:00
parent 500fbc0cef
commit f3bacd1462

View file

@ -21,6 +21,10 @@ bind -n M-Down select-pane -D
set -g mouse on set -g mouse on
# nvim fixes
set -sg escape-time 300
set -g focus-events on
# don't rename windows automatically # don't rename windows automatically
set-option -g allow-rename off 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 bind P paste-buffer
# color support # color support
set -g default-terminal "xterm-256color" set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc" set -ga terminal-overrides ",tmux-256color:Tc"
bind u capture-pane \;\ bind u capture-pane \;\
save-buffer /tmp/tmux-buffer \;\ save-buffer /tmp/tmux-buffer \;\