File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,13 @@ The mappings can be customized by setting the `mappings` table in your configura
171
171
- ` normal ` : Key for normal mode
172
172
- ` insert ` : Key for insert mode
173
173
174
- For example, to change the submit prompt mapping or show_diff full diff option:
174
+ For example, to change the complete mapping to Tab or show_diff full diff option:
175
175
176
176
``` lua
177
177
{
178
178
mappings = {
179
- submit_prompt = {
180
- normal = ' <Leader>s' ,
181
- insert = ' <C-s>'
179
+ complete = {
180
+ insert = ' <Tab>'
182
181
}
183
182
show_diff = {
184
183
full_diff = true
@@ -444,6 +443,7 @@ Below are all available configuration options with their default values:
444
443
model = ' gpt-4.1' , -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
445
444
tools = nil , -- Default tool or array of tools (or groups) to share with LLM (can be specified manually in prompt via @).
446
445
sticky = nil , -- Default sticky prompt or array of sticky prompts to use at start of every new chat (can be specified manually in prompt via >).
446
+ language = ' English' , -- Default language to use for answers
447
447
448
448
resource_processing = false , -- Enable intelligent resource processing (skips unnecessary resources to save tokens)
449
449
Original file line number Diff line number Diff line change 18
18
--- @field model string ?
19
19
--- @field tools string | table<string> | nil
20
20
--- @field sticky string | table<string> | nil
21
+ --- @field language string ?
21
22
--- @field resource_processing boolean ?
22
23
--- @field temperature number ?
23
24
--- @field headless boolean ?
@@ -58,6 +59,7 @@ return {
58
59
model = ' gpt-4.1' , -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
59
60
tools = nil , -- Default tool or array of tools (or groups) to share with LLM (can be specified manually in prompt via @).
60
61
sticky = nil , -- Default sticky prompt or array of sticky prompts to use at start of every new chat (can be specified manually in prompt via >).
62
+ language = ' English' , -- Default language to use for answers
61
63
62
64
resource_processing = false , -- Enable intelligent resource processing (skips unnecessary resources to save tokens)
63
65
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ local COPILOT_BASE = [[
2
2
When asked for your name, you must respond with "GitHub Copilot".
3
3
Follow the user's requirements carefully & to the letter.
4
4
Keep your answers short and impersonal.
5
+ Always answer in {LANGUAGE} unless explicitly asked otherwise.
5
6
<userEnvironment>
6
7
The user works in editor called Neovim which has these core concepts:
7
8
- Buffer: An in-memory text content that may be associated with a file
Original file line number Diff line number Diff line change @@ -473,6 +473,7 @@ function M.resolve_prompt(prompt, config)
473
473
474
474
if config .system_prompt then
475
475
config .system_prompt = config .system_prompt :gsub (' {OS_NAME}' , jit .os )
476
+ config .system_prompt = config .system_prompt :gsub (' {LANGUAGE}' , config .language )
476
477
if state .source then
477
478
config .system_prompt = config .system_prompt :gsub (' {DIR}' , state .source .cwd ())
478
479
end
You can’t perform that action at this time.
0 commit comments