-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit-msg.lua
More file actions
30 lines (30 loc) · 784 Bytes
/
Copy pathcommit-msg.lua
File metadata and controls
30 lines (30 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
return {
"reybits/commit-msg.nvim",
ft = "gitcommit",
cmd = {
"CommitMsgGen",
"CommitMsgCancel",
},
keys = {
{
"<leader>gc",
"<cmd>CommitMsgGen<cr>",
ft = "gitcommit",
desc = "Generate commit message",
},
{
"<leader>gC",
"<cmd>CommitMsgCancel<cr>",
ft = "gitcommit",
desc = "Cancel commit message generation",
},
},
opts = {
auto = false,
-- API key is read from env; first non-empty wins.
api_key_env = { "ANTHROPIC_API_KEY_COMMIT_MSG" },
model = "claude-haiku-4-5",
max_tokens = 512,
-- thinking = { budget_tokens = 1024 }, -- enable extended thinking
},
}