plugin heaven
This commit is contained in:
parent
67f33f32a3
commit
4384dfa118
18 changed files with 713 additions and 725 deletions
32
lua/plugins/chatGPT.lua
Normal file
32
lua/plugins/chatGPT.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
vim.keymap.set('v', '<leader>a', '<cmd>ChatGPTEditWithInstructions<CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('n', '<leader>a', '<cmd>ChatGPT<CR>', { noremap = true, silent = true })
|
||||
|
||||
return {
|
||||
'jackMort/ChatGPT.nvim',
|
||||
event = 'VeryLazy',
|
||||
config = function()
|
||||
require('chatgpt').setup {
|
||||
popup_input = {
|
||||
submit = '<S-CR>',
|
||||
},
|
||||
defaults = {
|
||||
openai_params = {
|
||||
model = 'gpt-4o',
|
||||
max_tokens = 4096,
|
||||
},
|
||||
openai_edit_params = {
|
||||
model = 'gpt-4o',
|
||||
},
|
||||
popup_layout = {
|
||||
default = 'right',
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
'MunifTanjim/nui.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'folke/trouble.nvim',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue