darwin pkgs support sucks fr
This commit is contained in:
37
modules/tmux.nix
Normal file
37
modules/tmux.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{pkgs, ...}: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
baseIndex = 1;
|
||||
|
||||
historyLimit = 10000;
|
||||
|
||||
mouse = true;
|
||||
|
||||
prefix = "C-x";
|
||||
|
||||
plugins = [
|
||||
pkgs.tmuxPlugins.vim-tmux-navigator
|
||||
{
|
||||
plugin = pkgs.tmuxPlugins.catppuccin;
|
||||
}
|
||||
];
|
||||
|
||||
extraConfig = "
|
||||
set-option -sa terminal-overrides \",xterm*:Tc\"
|
||||
|
||||
set -s escape-time 0
|
||||
|
||||
# split panes using | and -
|
||||
unbind '\"'
|
||||
unbind %
|
||||
bind _ split-window -h
|
||||
bind - split-window -v
|
||||
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user