Files
dotfiles/nix/home/lazygit/default.nix
2024-07-12 18:32:35 +02:00

35 lines
729 B
Nix

{ pkgs, ... }:
{
programs.lazygit = {
enable = true;
settings = {
git = {
overrideGpg = true;
paging = {
colorArg = "always";
pager = "delta --dark --paging=never syntax-theme=Dracula";
};
};
customCommands = [
{
key = "C";
command = "git cz c";
description = "commit with commitizen";
context = "files";
loadingText = "opening commitizen commit tool";
subprocess = true;
}
{
key = "W";
command = "git commit --no-verify";
context = "global";
subprocess = true;
}
];
};
};
home.packages = [ pkgs.lazygit ];
}