From 7497169a5e2c865ec64a6cb5f147aaecee24473d Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 22 Jan 2026 10:08:58 +0100 Subject: [PATCH] fixes compile mode --- modules/tmux/default.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix index 6b02655..0a4fe0c 100644 --- a/modules/tmux/default.nix +++ b/modules/tmux/default.nix @@ -1,4 +1,5 @@ { pkgs, ... }: + let tmux-compile = pkgs.tmuxPlugins.mkTmuxPlugin { pluginName = "compile-mode"; @@ -45,17 +46,6 @@ in keyMode = "vi"; escapeTime = 0; plugins = with pkgs; [ - { - plugin = tmux-compile; - extraConfig = '' - set -g @compile-mode-key "C-b" - set -g @compile-mode-recompile-key "C-r" - set -g @compile-mode-kill-key "C-k" - set -g @compile-mode-height "30%" - set -g @compile-mode-history-file "$HOME/.config/tmux-compile-mode/compile-history" - set -g @compile-mode-open-file-key "Enter" - ''; - } { plugin = tmuxPlugins.resurrect; extraConfig = '' @@ -112,6 +102,15 @@ in unbind v bind v choose-tree -Zw "join-pane -t '%%'" + + # Custom plugins + set -g @compile-mode-key "C-b" + set -g @compile-mode-recompile-key "C-r" + set -g @compile-mode-kill-key "C-k" + set -g @compile-mode-height "30%" + set -g @compile-mode-history-file "$HOME/.config/tmux-compile-mode/compile-history" + set -g @compile-mode-open-file-key "Enter" + run-shell ${tmux-compile}/share/tmux-plugins/compile-mode/compile-mode.tmux ''; }; }