ide/config/tmux/tmux.conf
João Paulo Dubas bd08e239a0 chore(tmux): remove tmux-fingers plugin (#195)
Co-authored-by: noboby <nobody@example.com>
Reviewed-on: #195
2025-03-11 13:37:03 +00:00

75 lines
1.6 KiB
Bash

# Based on:
# https://github.com/henrik/dotfiles/blob/master/tmux.conf
# Remap Prefix to C-a
unbind C-b
set -g prefix C-a
# Improve pane split
bind | split-window -h
bind - split-window -v
# Improve pane move
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Improve window move
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Improve resize pane
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Enable vim keys
set-window-option -g mode-keys vi
# Make [shift]-arrows, [ctrl]-arrows, etc work in vim
set -g xterm-keys on
# Attempt to fixes slows [esc] issues
set -s escape-time 0
# Disable mouse
# set -g mode-mouse off
# Status bar styling and content
set -g status-bg black
set -g status-fg white
# Don't prompt to kill panes/windows
bind-key x kill-pane
bind-key & kill-window
# Reload tmux conf
unbind r
bind r source-file ~/.config/tmux/tmux.conf\; display "Reloaded conf."
# Full color for vim
# based on https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
set -g default-terminal "tmux-256color"
set -sg terminal-overrides ",*:RGB"
# tms shortcuts
bind C-o display-popup -E "tms"
bind C-j display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
# buffer size
set -g history-limit 50000
# list plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'fabioluciano/tmux-tokyo-night'
set -g @plugin 'tmux-plugins/tmux-yank'
# tokyo night configuration
set -g @theme_plugins 'datetime'
# load/install plugins
run '~/.config/tmux/plugins/tpm/tpm'