This repository was archived by the owner on Jan 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig_example.lua
More file actions
43 lines (37 loc) · 1.38 KB
/
Copy pathconfig_example.lua
File metadata and controls
43 lines (37 loc) · 1.38 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
-- CodeCompanion GitCommit Extension Configuration Example
-- This file demonstrates how to configure the enhanced GitCommit extension with git tools
return {
-- Basic configuration
adapter = "anthropic", -- or "openai", "copilot", etc.
model = "claude-3-5-sonnet-20241022",
-- Languages for commit message generation
languages = { "English", "中文", "日本語", "Français" },
-- Files to exclude from git diff (supports glob patterns)
exclude_files = {
"*.pb.go", -- Protocol buffer files
"*.min.js", -- Minified JavaScript
"*.min.css", -- Minified CSS
"package-lock.json", -- NPM lock files
"yarn.lock", -- Yarn lock files
"*.log", -- Log files
"dist/*", -- Distribution directories
"build/*", -- Build directories
".next/*", -- Next.js build
"node_modules/*", -- Node modules
"vendor/*", -- Vendor directories
},
-- Buffer configuration
buffer = {
enabled = true,
keymap = "<leader>gc",
auto_generate = true,
auto_generate_delay = 200,
},
-- Enable slash command in chat buffer
add_slash_command = true,
-- Git tool configuration (NEW)
add_git_tool = true, -- Add @git_bot tool to CodeCompanion
add_git_commands = true, -- Add :CodeCompanionGit commands
git_tool_auto_submit_errors = false, -- Don't auto-submit errors to LLM
git_tool_auto_submit_success = false, -- Don't auto-submit success to LLM
}