add copilot

change chatgpt input from C-CR to C-s (otherwise trapped by Windows terminal)
pull/1300/head
km 4 months ago
parent 81bfbf81a5
commit b341a42762

@ -661,6 +661,7 @@ require('lazy').setup({
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-path',
},
'github/copilot.vim',
config = function()
-- See `:help cmp`
local cmp = require 'cmp'

@ -4,6 +4,10 @@ return {
config = function()
require('chatgpt').setup {
-- this config assumes you have OPENAI_API_KEY environment variable set
popup_input = {
submit = '<C-s>',
},
openai_params = {
-- NOTE: model can be a function returning the model name
-- this is useful if you want to change the model on the fly

Loading…
Cancel
Save