nvim-config/lua/plugins/avante.lua

38 lines
961 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",
claude = {
model = "claude-3-7-sonnet-latest",
api_key_name = "cmd:cat " .. vim.fn.expand("~/.anthropic"),
},
2024-10-06 22:48:48 -07:00
openai = {
model = "o3-mini",
reasoning_effort = "high",
2024-10-06 23:41:48 -07:00
api_key_name = "cmd:cat " .. vim.fn.expand("~/.openai"),
2024-10-06 22:48:48 -07:00
},
vendors = {
ollama = {
__inherited_from = "openai",
api_key_name = "",
endpoint = "http://127.0.0.1:11434/v1",
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 = {
2024-10-20 19:35:38 -07:00
"HakonHarnes/img-clip.nvim",
"MeanderingProgrammer/render-markdown.nvim",
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
2024-10-06 22:48:48 -07:00
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
},
}