blob: 124a6a1f6e258a5f1d35c3c20547a6c94f8e58f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ ... }:
{
home.file.".config/lazygit/config.yml".text = ''
git:
pagers:
- colorArg: always
pager: delta --dark --paging=never
customCommands:
- key: "C"
context: "files"
description: "Generate commit message with Claude Code"
command: >
git diff --staged | ATT_SKIP_HOOKS=1 $HOME/.local/bin/claude -p 'Generate a concise git commit message for these staged changes.
Output ONLY the raw commit message with no markdown, no code blocks, no backticks, no explanations.
Use conventional commit format.' --model haiku --output-format text > /tmp/commit_msg &&
GIT_EDITOR=nvim git commit -e -F /tmp/commit_msg
output: terminal
'';
}
|