LazyVim.LazyVim/lua/lazyvim/plugins/extras/ai/avante.lua
George Guimarães 91f5850c3c
Update lua/lazyvim/plugins/extras/ai/avante.lua
Co-authored-by: PatMulligan <43773168+PatMulligan@users.noreply.github.com>
2025-06-23 11:48:21 -03:00

50 lines
1.5 KiB
Lua

return {
{
"yetone/avante.nvim",
event = "VeryLazy",
dependencies = {
"stevearc/dressing.nvim",
},
opts = {
-- Default configuration
hints = { enabled = false },
---@alias AvanteProvider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
provider = "claude", -- Recommend using Claude
auto_suggestions_provider = "claude", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-sonnet-20241022",
temperature = 0,
max_tokens = 4096,
},
-- File selector configuration
--- @alias FileSelectorProvider "native" | "fzf" | "mini.pick" | "snacks" | "telescope" | string
file_selector = {
provider = "fzf", -- Avoid native provider issues
provider_opts = {},
},
},
build = LazyVim.is_win() and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make",
},
{
"MeanderingProgrammer/render-markdown.nvim",
optional = true,
ft = function(_, ft)
vim.list_extend(ft, { "Avante" })
end,
opts = function(_, opts)
opts.file_types = vim.list_extend(opts.file_types or {}, { "Avante" })
end,
},
{
"folke/which-key.nvim",
optional = true,
opts = {
spec = {
{ "<leader>a", group = "ai" },
},
},
},
}