dotfiles/home/nvim/files/lua/plugins/avante.lua

61 lines
2.1 KiB
Lua

return {
"yetone/avante.nvim",
event = "VeryLazy",
version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
opts = {
provider = "copilot",
-- cursor_applying_provider = 'ollama',
copilot = {
model = "claude-3.5-sonnet"
},
ollama = {
model = "llama3.2:1b"
},
behaviour = {
enable_cursor_planning_mode = false, -- enable cursor planning mode!
},
hints = { enabled = false },
vendors = {
copilot_claude_new = {
__inherited_from = "copilot",
model = "claude-3.7-sonnet",
},
copilot_claude_old= {
__inherited_from = "copilot",
model = "claude-3.5-sonnet",
},
copilot_claude_thinking = {
__inherited_from = "copilot",
model = "claude-3.7-sonnet-thought",
},
copilot_o3_mini = {
__inherited_from = "copilot",
model = "o3-mini",
},
copilot_gemini = {
__inherited_from = "copilot",
model = "gemini-2.0-flash-001",
},
}
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "nix-shell -p cmake --command 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",
--- The below dependencies are optional,
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}