17 lines
404 B
Nix
17 lines
404 B
Nix
{ config, ... }: let
|
|
mod = "M";
|
|
|
|
fg = config.style.color.bg.dark;
|
|
selection = config.style.color.selection;
|
|
in {
|
|
text = ''
|
|
setw -g mode-keys vi
|
|
bind -n ${mod}-v copy-mode
|
|
bind -n ${mod}-V choose-buffer;
|
|
bind -T copy-mode-vi v send -X begin-selection
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
|
|
|
set -g mode-style "fg=#${fg} bg=#${selection} bold"
|
|
'';
|
|
}
|