nixos-configs/common/home/tmux/default.nix
matt1432 907ad13aa8
All checks were successful
Discord / discord commits (push) Has been skipped
style: add lang comments for treesitter language injection
2024-01-08 11:25:18 -05:00

31 lines
871 B
Nix

{pkgs, ...}: {
programs = {
# Make sure we have color support
bash.shellAliases.tmux = "tmux -2";
tmux = {
enable = true;
mouse = true;
keyMode = "vi";
terminal = "tmux-256color";
newSession = true;
historyLimit = 30000;
plugins = with pkgs.tmuxPlugins; [dracula];
extraConfig =
/*
bash
*/
''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
set -ga terminal-overrides ",*256col*:Tc"
'';
};
};
}