From e7af265892efe09b4da33d29cd2dfbf75a9c0968 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 13 Jan 2026 14:14:03 +0100 Subject: [PATCH] add tmux session restore --- modules/tmux.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/tmux.nix b/modules/tmux.nix index b06229f..2acd9f6 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -8,6 +8,23 @@ mouse = true; # Enable mouse support keyMode = "vi"; # Use vi key bindings in copy mode terminal = "tmux-256color"; + + plugins = with pkgs.tmuxPlugins; [ + { + plugin = resurrect; + extraConfig = '' + set -g @resurrect-strategy-nvim 'session' + set -g @resurrect-processes 'nvim lazygit claude ssh' + ''; + } + { + plugin = continuum; + extraConfig = '' + set -g @continuum-restore 'on' + set -g @continuum-save-interval '15' + ''; + } + ]; extraConfig = '' # Terminal settings for true color and italic support