refactor: major config changes
This commit is contained in:
parent
b2c8430125
commit
ff32ecb811
14 changed files with 148 additions and 179 deletions
|
|
@ -1,36 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
tmux-compile = pkgs.tmuxPlugins.mkTmuxPlugin {
|
||||
pluginName = "compile-mode";
|
||||
version = "1.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "alexekdahl";
|
||||
repo = "tmux-compile";
|
||||
rev = "be830d944a189fc6b209490fcb815346a3c402ca";
|
||||
hash = "sha256-+b3Oc4M0xhwCo7HupAJpG68ZxMC8yMNZLl6QtEQv12o=";
|
||||
};
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
postInstall = ''
|
||||
for script in $target/share/tmux-plugins/*/bin/* $target/share/tmux-plugins/*/*.tmux; do
|
||||
[ -f "$script" ] && [ -x "$script" ] && wrapProgram "$script" \
|
||||
--prefix PATH : ${
|
||||
pkgs.lib.makeBinPath [
|
||||
pkgs.bash
|
||||
pkgs.coreutils
|
||||
pkgs.tmux
|
||||
pkgs.gnused
|
||||
pkgs.gnugrep
|
||||
]
|
||||
}
|
||||
done
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
|
@ -102,15 +71,6 @@ 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