Files
dotFiles/modules/tmux.nix

38 lines
689 B
Nix
Raw Normal View History

2025-01-05 03:15:23 +05:30
{pkgs, ...}: {
programs.tmux = {
enable = true;
baseIndex = 1;
historyLimit = 10000;
mouse = true;
prefix = "C-x";
plugins = [
pkgs.tmuxPlugins.vim-tmux-navigator
{
plugin = pkgs.tmuxPlugins.catppuccin;
}
];
2025-02-01 23:49:03 +05:30
extraConfig = ''
2025-02-26 20:58:23 +05:30
set-option -sa terminal-overrides ",xterm*:Tc"
2025-01-05 03:15:23 +05:30
2025-02-26 20:58:23 +05:30
set -s escape-time 0
2025-01-05 03:15:23 +05:30
2025-02-26 20:58:23 +05:30
# split panes using | and -
unbind '"'
unbind %
bind - split-window -v -c "#{pane_current_path}"
bind _ split-window -h -c "#{pane_current_path}"
2025-01-05 03:15:23 +05:30
2025-02-26 20:58:23 +05:30
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
'';
2025-01-05 03:15:23 +05:30
};
}