kickstart.nvim/lua/custom/plugins/avante.lua

46 lines
1003 B
Lua

return {
'yetone/avante.nvim',
event = 'VeryLazy',
version = '*',
opts = {
provider = 'copilot',
copilot = {
endpoint = 'https://api.githubcopilot.com',
model = 'gpt-4o-2024-08-06',
proxy = nil,
allow_insecure = false,
timeout = 30000,
temperature = 0,
max_tokens = 4096,
},
},
build = 'make',
dependencies = {
'nvim-treesitter/nvim-treesitter',
'stevearc/dressing.nvim',
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
{
'HakonHarnes/img-clip.nvim',
event = 'VeryLazy',
opts = {
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true,
},
},
},
{
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { 'markdown', 'Avante' },
},
ft = { 'markdown', 'Avante' },
},
},
}