diff options
author | Minijackson <minijackson@riseup.net> | 2022-06-11 18:59:02 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2022-06-11 18:59:02 +0200 |
commit | d944b3933220070434bebf7741ec440f85ed9119 (patch) | |
tree | 9efa5700f2b74a8a2bbaf1df323041d92906e1f0 /common | |
parent | 1b2649af8889ccec0ecc4a4b751c9387d986091a (diff) | |
download | nixos-config-reborn-d944b3933220070434bebf7741ec440f85ed9119.tar.gz nixos-config-reborn-d944b3933220070434bebf7741ec440f85ed9119.zip |
common/tmux: use plugins option
Diffstat (limited to 'common')
-rw-r--r-- | common/commandline/tmux.nix | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/common/commandline/tmux.nix b/common/commandline/tmux.nix index 84d2cc8..b355662 100644 --- a/common/commandline/tmux.nix +++ b/common/commandline/tmux.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | inputs: | 1 | inputs: { |
2 | 2 | config, | |
3 | { config, pkgs, ... } : | 3 | pkgs, |
4 | 4 | ... | |
5 | let | 5 | }: let |
6 | # Thanks: https://github.com/DanielFGray/dotfiles/blob/master/tmux.remote.conf | 6 | # Thanks: https://github.com/DanielFGray/dotfiles/blob/master/tmux.remote.conf |
7 | remoteConf = builtins.toFile "tmux.remote.conf" '' | 7 | remoteConf = builtins.toFile "tmux.remote.conf" '' |
8 | unbind C-q | 8 | unbind C-q |
@@ -21,13 +21,9 @@ in { | |||
21 | terminal = "tmux-256color"; | 21 | terminal = "tmux-256color"; |
22 | historyLimit = 50000; | 22 | historyLimit = 50000; |
23 | 23 | ||
24 | extraConfig = with config.theme; with pkgs.tmuxPlugins; | 24 | plugins = with pkgs.tmuxPlugins; [copycat sensible urlview]; |
25 | '' | ||
26 | # Plugins | ||
27 | run-shell '${copycat}/share/tmux-plugins/copycat/copycat.tmux' | ||
28 | run-shell '${sensible}/share/tmux-plugins/sensible/sensible.tmux' | ||
29 | run-shell '${urlview}/share/tmux-plugins/urlview/urlview.tmux' | ||
30 | 25 | ||
26 | extraConfig = with config.theme; '' | ||
31 | bind-key R run-shell ' \ | 27 | bind-key R run-shell ' \ |
32 | tmux source-file /etc/tmux.conf > /dev/null; \ | 28 | tmux source-file /etc/tmux.conf > /dev/null; \ |
33 | tmux display-message "sourced /etc/tmux.conf"' | 29 | tmux display-message "sourced /etc/tmux.conf"' |
@@ -38,7 +34,9 @@ in { | |||
38 | set-option -g status-left-length 20 | 34 | set-option -g status-left-length 20 |
39 | set-option -g @prefix_highlight_fg '${colors.background}' | 35 | set-option -g @prefix_highlight_fg '${colors.background}' |
40 | set-option -g @prefix_highlight_bg '${colors.dominant}' | 36 | set-option -g @prefix_highlight_bg '${colors.dominant}' |
41 | run-shell '${prefix-highlight}/share/tmux-plugins/prefix-highlight/prefix_highlight.tmux' | 37 | |
38 | # Add plugin here because it needs its configuration | ||
39 | run-shell '${pkgs.tmuxPlugins.prefix-highlight}/share/tmux-plugins/prefix-highlight/prefix_highlight.tmux' | ||
42 | 40 | ||
43 | # Be faster switching windows | 41 | # Be faster switching windows |
44 | bind C-n next-window | 42 | bind C-n next-window |