File tree 3 files changed +12
-0
lines changed 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ require('copilot').setup({
87
87
[" ." ] = false ,
88
88
},
89
89
copilot_node_command = ' node' , -- Node.js version must be > 18.x
90
+ copilot_model = " " , -- Current LSP default is gpt-35-turbo, supports gpt-4o-copilot
90
91
server_opts_overrides = {},
91
92
})
92
93
```
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ local function prepare_client_config(overrides)
190
190
cmd = {
191
191
node ,
192
192
agent_path ,
193
+ " --stdio" ,
193
194
},
194
195
root_dir = vim .loop .cwd (),
195
196
name = " copilot" ,
@@ -233,6 +234,9 @@ local function prepare_client_config(overrides)
233
234
end
234
235
end ,
235
236
handlers = handlers ,
237
+ init_options = {
238
+ copilotIntegrationId = " vscode-chat" ,
239
+ },
236
240
}, overrides )
237
241
end
238
242
Original file line number Diff line number Diff line change @@ -203,13 +203,20 @@ function M.get_editor_configuration()
203
203
filetypes = vim .tbl_deep_extend (" keep" , filetypes , internal_filetypes )
204
204
end
205
205
206
+ local copilot_model = conf .copilot_model ~= " " and conf .copilot_model or " "
207
+
206
208
--- @type string[]
207
209
local disabled_filetypes = vim .tbl_filter (function (ft )
208
210
return filetypes [ft ] == false
209
211
end , vim .tbl_keys (filetypes ))
210
212
table.sort (disabled_filetypes )
211
213
212
214
return {
215
+ github = {
216
+ copilot = {
217
+ selectedCompletionModel = copilot_model ,
218
+ },
219
+ },
213
220
enableAutoCompletions = not not (conf .panel .enabled or conf .suggestion .enabled ),
214
221
disabledLanguages = vim .tbl_map (function (ft )
215
222
return { languageId = ft }
You can’t perform that action at this time.
0 commit comments