mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
hm: lazygit tmux integration
This commit is contained in:
parent
e524318c40
commit
3bde6d4dfb
3 changed files with 11 additions and 1 deletions
|
|
@ -154,6 +154,7 @@ in
|
||||||
../homeModules/common/kitty.nix
|
../homeModules/common/kitty.nix
|
||||||
../homeModules/common/leana.nix
|
../homeModules/common/leana.nix
|
||||||
../homeModules/common/locale.nix
|
../homeModules/common/locale.nix
|
||||||
|
../homeModules/common/lazygit.nix
|
||||||
../homeModules/common/neovim.nix
|
../homeModules/common/neovim.nix
|
||||||
../homeModules/common/packages.nix
|
../homeModules/common/packages.nix
|
||||||
../homeModules/common/password-store.nix
|
../homeModules/common/password-store.nix
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
pkgs.nix-which
|
pkgs.nix-which
|
||||||
pkgs.helix
|
pkgs.helix
|
||||||
pkgs.nushell
|
pkgs.nushell
|
||||||
pkgs.lazygit
|
|
||||||
|
|
||||||
# pdf
|
# pdf
|
||||||
pkgs.poppler_utils # pdfseparate, pdfunite
|
pkgs.poppler_utils # pdfseparate, pdfunite
|
||||||
|
|
@ -66,6 +65,8 @@
|
||||||
package = pkgs.emacs28;
|
package = pkgs.emacs28;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lazygit.enable = true;
|
||||||
|
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
|
|
||||||
8
nix/homeModules/common/lazygit.nix
Normal file
8
nix/homeModules/common/lazygit.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{config, lib, ...}: let
|
||||||
|
cfg = config.programs.lazygit;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.tmux.extraConfig = lib.mkIf cfg.enable ''
|
||||||
|
bind -n C-g run-shell "tmux new-window ${lib.getExe cfg.package}"
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue