feat: avante

This commit is contained in:
ralvescosta 2025-03-17 21:48:22 -03:00
parent 9de0a7116e
commit 174d7d269d
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
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' },
},
},
},
}