feat(tmux): use dracula theme and support plugins
This commit is contained in:
parent
dd88e2f063
commit
d7846e3dbf
1 changed files with 6 additions and 0 deletions
|
@ -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"'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue