50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.tmux = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
unbind C-b
|
|
unbind '"'
|
|
unbind %
|
|
unbind [
|
|
unbind s
|
|
|
|
set -g prefix C-a
|
|
bind C-a send-prefix
|
|
|
|
set-window-option -g mode-keys vi
|
|
set -g allow-passthrough on
|
|
set -s set-clipboard on
|
|
set -g @resurrect-strategy-nvim 'session'
|
|
set -sg escape-time 10
|
|
|
|
bind -n M-h select-pane -L
|
|
bind -n M-j select-pane -D
|
|
bind -n M-k select-pane -U
|
|
bind -n M-l select-pane -R
|
|
|
|
bind -n M-H resize-pane -L 2
|
|
bind -n M-J resize-pane -D 2
|
|
bind -n M-K resize-pane -U 2
|
|
bind -n M-L resize-pane -R 2
|
|
|
|
bind -n 'M-\' split-window -h -c "#{pane_current_path}"
|
|
bind -n M-- split-window -v -c "#{pane_current_path}"
|
|
|
|
bind -n M-s copy-mode
|
|
'';
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
resurrect
|
|
{
|
|
plugin = continuum;
|
|
extraConfig = ''
|
|
set -g @continuum-restore "on"
|
|
set -g @continuum-save-interval "5"
|
|
'';
|
|
}
|
|
];
|
|
};
|
|
}
|