Skip to content

Commit 90ec769

Browse files
committed
feat(lazygit): add lazygit module with Claude-powered commit message generation
1 parent 5bfafe9 commit 90ec769

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

users/jloos/home.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ in
6565
./modules/ghostty.nix
6666
./modules/zed.nix
6767
./modules/zoxide.nix
68+
./modules/lazygit.nix
6869
./modules/claude-code.nix
6970
./modules/playwright-cli.nix
7071
./modules/indie-consultant.nix
@@ -86,7 +87,6 @@ in
8687

8788
peco
8889
git-ignore
89-
lazygit
9090

9191
# shell tools
9292
ripgrep

users/jloos/modules/lazygit.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ ... }:
2+
{
3+
programs.lazygit = {
4+
enable = true;
5+
settings = {
6+
customCommands = [
7+
{
8+
key = "<c-g>";
9+
description = "Generate commit message with Claude";
10+
context = "files";
11+
loadingText = "Generating commit message...";
12+
output = "terminal";
13+
command = ''git diff --cached | claude -p "Generate a concise git commit message for this diff. Output ONLY the commit message, nothing else. Use conventional commit format." | git commit -F -'';
14+
}
15+
];
16+
};
17+
};
18+
}

0 commit comments

Comments
 (0)