summary refs log tree commit diff
path: root/modules/tmux.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tmux.nix')
-rw-r--r--modules/tmux.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/tmux.nix b/modules/tmux.nix
new file mode 100644
index 0000000..8aefc69
--- /dev/null
+++ b/modules/tmux.nix
@@ -0,0 +1,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'
+    '';
+  };
+}