fixes compile mode
This commit is contained in:
parent
64d7791196
commit
7497169a5e
1 changed files with 10 additions and 11 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue