dotfiles/nixcfgs/users/js0ny/programs/tmux.nix
2025-11-22 18:43:51 +00:00

56 lines
1.3 KiB
Nix

{pkgs, ...}: {
programs.tmux = {
enable = true;
prefix = "C-a";
shortcut = "a";
keyMode = "vi";
historyLimit = 10000;
mouse = true;
baseIndex = 1;
resizeAmount = 5;
terminal = "tmux-256color";
tmuxp.enable = true;
plugins = with pkgs.tmuxPlugins; [
pain-control
yank
extrakto
tmux-which-key
{
plugin = resurrect;
extraConfig = ''
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
'';
}
{
plugin = continuum;
extraConfig = ''
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15'
'';
}
];
extraConfig = ''
### General Options
### -----------------------------------------------
set-option -g default-terminal "tmux-256color"
set-option -g allow-rename on
set-option -g alternate-screen on
set-option -g visual-activity on
# set-option -g pane-border-style fg=colour244
### Windows Management
### -----------------------------------------------
bind c new-window
unbind '"'
unbind %
bind ` resize-pane -Z
# use pain-control map
# bind C-h select-window -t :-
# bind C-l select-window -t :+
'';
};
}