fix(avante): build command

This commit is contained in:
Simon Lasbrugnas 2026-03-13 15:43:39 +01:00
parent 31185c4f1b
commit 390cdfe875
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -2,40 +2,26 @@ return {
"yetone/avante.nvim", "yetone/avante.nvim",
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- ⚠️ must add this setting! ! ! -- ⚠️ must add this setting! ! !
build = vim.fn.has("win32") ~= 0 build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
or "make", or "make",
event = "VeryLazy", event = "VeryLazy",
version = false, -- Never set this value to "*"! Never! version = false, -- Never set this value to "*"! Never!
---@module 'avante' ---@module 'avante'
---@type avante.Config ---@type avante.Config
opts = { opts = {
-- add any opts here
-- this file can contain specific instructions for your project
instructions_file = "avante.md", instructions_file = "avante.md",
selection = { selection = {
enabled = true, enabled = true,
hint_display = "none", hint_display = "none",
}, },
-- for example -- for example
provider = "claude", provider = "openai",
providers = { providers = {
claude = { openai = {
endpoint = "https://api.anthropic.com", model = "gpt-5.3-chat-latest",
model = "claude-sonnet-4-20250514",
timeout = 30000, -- Timeout in milliseconds
extra_request_body = { extra_request_body = {
temperature = 0.75, temperature = 0,
max_tokens = 20480, max_tokens = 4096,
},
},
moonshot = {
endpoint = "https://api.moonshot.ai/v1",
model = "kimi-k2-0711-preview",
timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
temperature = 0.75,
max_tokens = 32768,
}, },
}, },
}, },
@ -68,7 +54,7 @@ return {
}, },
{ {
-- Make sure to set this up properly if you have lazy=true -- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim', "MeanderingProgrammer/render-markdown.nvim",
opts = { opts = {
file_types = { "markdown", "Avante" }, file_types = { "markdown", "Avante" },
}, },