Update Avante config

This commit is contained in:
Thomas Avé 2025-06-03 12:57:22 +02:00
parent cb90e7296c
commit 25b24b72e1
3 changed files with 34 additions and 32 deletions

View File

@ -7,7 +7,8 @@ cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
hwdec=auto
vo=gpu-next
gpu-api=opengl
force-window=yes
keep-open=yes

View File

@ -3,19 +3,13 @@ return {
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',
providers = {
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",
@ -36,7 +30,13 @@ return {
__inherited_from = "copilot",
model = "gemini-2.0-flash-001",
},
}
},
provider = "copilot",
-- cursor_applying_provider = 'ollama',
behaviour = {
enable_cursor_planning_mode = false, -- enable cursor planning mode!
},
hints = { enabled = false },
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "nix-shell -p cmake --command make",

View File

@ -89,7 +89,8 @@ return {
config = function(_, opts)
require('blink.cmp').setup(opts)
local lspconfig = require('lspconfig')
local filetypes = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "html", "xhtml", "typst", "mail" }
local filetypes = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex",
"quarto", "rmd", "context", "html", "xhtml", "typst", "mail" }
local lsp_opts = {
servers = {
basedpyright = {