nix/home/config/tmux/module/Copy.nix

17 lines
390 B
Nix

{ config, ... }:
let
fg = config.style.color.fg.dark;
selection = config.style.color.selection;
in
{
text = ''
setw -g mode-keys vi
bind -n M-v copy-mode
bind -n M-p 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"
'';
}