~keving/dotfiles

ref: a6884c5ddf9f8fec4642f8ad6c97d1aa2d320084 dotfiles/.tmux.conf -rw-r--r-- 984 bytes
a6884c5d — Kevin Guillaumond Update tmux to make it play nicer with Neovim 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# vi-like navigation in status bar
set -g status-keys vi

# vi-like navigation in copy mode
set-window-option -g mode-keys vi

# Navigate between panes using hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Resize panes using HJKL
bind H resize-pane -L 10
bind J resize-pane -D 10
bind K resize-pane -U 10
bind L resize-pane -R 10

# To make NeoVim's `autoread` work
set-option -g focus-events on

set-option -g default-terminal "tmux-256color"

# Enable true colors and fix `termguicolors` in tmux
set-option -sa terminal-overrides ',xterm-256color:RGB'

set -g @plugin 'tmux-plugins/tpm'  # Plugin manager

set -g @plugin 'tmux-plugins/tmux-resurrect'  # Save /restore session
set -g @resurrect-strategy-nvim 'session'  # Resurect Neovim sessions as well

set -g @plugin 'tmux-plugins/tmux-continuum'  # Auto-save session

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'