summary refs log tree commit diff
path: root/modules/tmux.nix
blob: 8aefc692fbecde41334843b621ca0c426201da09 (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
{ 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'
    '';
  };
}