summary refs log tree commit diff
path: root/modules/tmux.nix
blob: 4fd14a65725282021b74231cdc962c18c56029f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ pkgs, ... }:

{
  programs.tmux = {
    enable = true;
    # TODO: check with upstream if maybe the system-level
    # tmux configuration can have some of these HM options.
    # mouse = true;
    keyMode = "vi";

    plugins = with pkgs.tmuxPlugins; [
      sensible
      yank
      fpp
      open
      fuzzback
      jump
      vim-tmux-navigator
    ];

    extraConfigBeforePlugins = ''
      # * jump
      # same as bi-directional vim easymotion key
      set -g @jump-key 's'
    '';

    extraConfig = ''
      # enable mouse, manually
      set-option -g mouse on
    '';
  };
}