mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
56 lines
1.3 KiB
Nix
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 :+
|
|
'';
|
|
};
|
|
}
|