hm: lazygit tmux integration

This commit is contained in:
Primrose 2025-06-01 21:21:31 +02:00
parent e524318c40
commit 3bde6d4dfb
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 11 additions and 1 deletions

View file

@ -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

View file

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

View 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}"
'';
}