{ config, ... }: let
	fg        = config.style.color.bg.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"
	'';
}