nvim-config/lua/plugins/avante.lua

40 lines
1,017 B
Lua
Raw Normal View History

2024-10-06 22:48:48 -07:00
return {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
2024-10-20 20:33:58 -07:00
version = false,
2024-10-06 22:48:48 -07:00
opts = {
provider = "claude",
2025-06-28 10:17:21 -07:00
providers = {
claude = {
model = "claude-sonnet-4-20250514",
api_key_name = "cmd:cat " .. vim.fn.expand("~/.anthropic"),
},
openai = {
model = "o4-mini",
api_key_name = "cmd:cat " .. vim.fn.expand("~/.openai"),
extra_request_body = {
reasoning_effort = "high",
},
},
ollama = {
__inherited_from = "openai",
api_key_name = "",
2025-06-28 10:17:21 -07:00
endpoint = "http://127.0.0.1:11434",
model = "qwen2.5-coder",
},
},
2024-10-06 22:48:48 -07:00
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
dependencies = {
2025-06-28 10:17:21 -07:00
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
2024-10-20 19:35:38 -07:00
"HakonHarnes/img-clip.nvim",
"MeanderingProgrammer/render-markdown.nvim",
"nvim-tree/nvim-web-devicons",
2024-10-06 22:48:48 -07:00
"nvim-treesitter/nvim-treesitter",
2025-06-28 10:17:21 -07:00
"folke/snacks.nvim",
2024-10-06 22:48:48 -07:00
},
}