feat(tmux): use dracula theme and support plugins

This commit is contained in:
matt1432 2023-07-06 20:37:53 -04:00
parent dd88e2f063
commit d7846e3dbf

View file

@ -53,6 +53,7 @@
programs = { programs = {
# TODO: install plugins through nix
tmux = { tmux = {
enable = true; enable = true;
keyMode = "vi"; keyMode = "vi";
@ -66,6 +67,11 @@
set -ga terminal-overrides ',xterm*:smcup@:rmcup@' set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
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 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" bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
set -g @plugin 'dracula/tmux'
run 'bash -c "$HOME/.tmux/plugins/tpm/tpm ||
${pkgs.git}/bin/git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm &&
$HOME/.tmux/plugins/tpm/tpm"'
''; '';
}; };