fixes compile mode

This commit is contained in:
Dennis 2026-01-22 10:08:58 +01:00
parent 64d7791196
commit 7497169a5e

View file

@ -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
'';
};
}