aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/lazygit.nix
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
commite08f800b6dc1bc6a6a6127c12b7df72bd219d50b (patch)
treed8946586bdda098983322316d02421c57ffb885d /modules/home/lazygit.nix
parent1fd92fcaf3aadea1e9509f859340f57100218c41 (diff)
downloaddotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.tar.gz
dotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.zip
use nix
Diffstat (limited to 'modules/home/lazygit.nix')
-rw-r--r--modules/home/lazygit.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/home/lazygit.nix b/modules/home/lazygit.nix
new file mode 100644
index 0000000..da8996a
--- /dev/null
+++ b/modules/home/lazygit.nix
@@ -0,0 +1,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 | $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
+ '';
+}