set-option -g default-shell /bin/zsh

set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
set -ga terminal-overrides ",xterm*:Tc"
set -sg escape-time 0
set -g history-limit 50000

# fix tmux being a pain in the fucking ass and pass through C-CR to vim
#bind C-Enter send-keys -t $PANE_ID C-Enter
unbind C-Enter

# smart pane switching with awareness of vim splits
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind -r C-h resize-pane -L 4
bind -r C-j resize-pane -D 2
bind -r C-k resize-pane -U 2
bind -r C-l resize-pane -R 4

bind C-p previous-window
bind C-n next-window

set -g repeat-time 1000

# split panes using v and x
bind v split-window -h
bind x split-window -v
unbind '"'
unbind %

set -g status-right ""
set -g status-style 'bg=#f5bde6 fg=#24273a'
set -g pane-active-border-style "bg=default fg=#f5bde6"

set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-strategy-nvim 'session'

run '~/.tmux/plugins/tpm/tpm'

