40 lines
1.3 KiB
Lua
40 lines
1.3 KiB
Lua
return {
|
|
{
|
|
'yetone/avante.nvim',
|
|
event = 'VeryLazy',
|
|
version = false,
|
|
opts = {
|
|
provider = 'openai',
|
|
openai = {
|
|
endpoint = 'https://api.openai.com/v1',
|
|
model = 'gpt-4o-mini',
|
|
timeout = 30000, -- timeout in milliseconds
|
|
temperature = 0, -- adjust if needed
|
|
max_tokens = 4096,
|
|
-- reasoning_effort = "high" -- only supported for reasoning models (o1, etc.)
|
|
},
|
|
},
|
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
|
build = 'make',
|
|
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
|
dependencies = {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
-- "stevearc/dressing.nvim",
|
|
'nvim-lua/plenary.nvim',
|
|
'MunifTanjim/nui.nvim',
|
|
--
|
|
'nvim-telescope/telescope.nvim', -- for file_selector provider telescope
|
|
'hrsh7th/nvim-cmp', -- autocompletion for avante commands and mentions
|
|
'nvim-tree/nvim-web-devicons', -- or echasnovski/mini.icons
|
|
{
|
|
-- Make sure to set this up properly if you have lazy=true
|
|
'MeanderingProgrammer/render-markdown.nvim',
|
|
opts = {
|
|
file_types = { 'markdown', 'Avante' },
|
|
},
|
|
ft = { 'markdown', 'Avante' },
|
|
},
|
|
},
|
|
},
|
|
}
|