38 lines
955 B
Nix
38 lines
955 B
Nix
{pkgs, ...}: {
|
|
programs.tmux = {
|
|
enable = true;
|
|
baseIndex = 1;
|
|
disableConfirmationPrompt = true;
|
|
newSession = true;
|
|
mouse = true;
|
|
secureSocket = true;
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
|
shortcut = "a";
|
|
terminal = "screen-256color";
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
gruvbox
|
|
sensible
|
|
vim-tmux-navigator
|
|
{
|
|
plugin = resurrect;
|
|
extraConfig = ''
|
|
set -g @resurrect-strategy-vim 'session'
|
|
set -g @resurrect-strategy-nvim 'session'
|
|
set -g @resurrect-capture-pane-contents 'on'
|
|
'';
|
|
}
|
|
{
|
|
plugin = continuum;
|
|
extraConfig = ''
|
|
set -g @continuum-boot 'on'
|
|
set -g @continuum-restore 'on'
|
|
set -g @continuum-save-interval '10'
|
|
set -g @continuum-boot-options 'alacritty'
|
|
'';
|
|
}
|
|
];
|
|
extraConfig = ''
|
|
set -as terminal-features ",xterm-256color:RGB"
|
|
'';
|
|
};
|
|
}
|