add copilot
change chatgpt input from C-CR to C-s (otherwise trapped by Windows terminal)
This commit is contained in:
parent
81bfbf81a5
commit
b341a42762
1
init.lua
1
init.lua
|
@ -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…
Reference in New Issue