Update Avante config
This commit is contained in:
parent
cb90e7296c
commit
25b24b72e1
|
@ -7,7 +7,8 @@ cscale=ewa_lanczossharp
|
||||||
video-sync=display-resample
|
video-sync=display-resample
|
||||||
interpolation
|
interpolation
|
||||||
tscale=oversample
|
tscale=oversample
|
||||||
hwdec=auto
|
vo=gpu-next
|
||||||
|
gpu-api=opengl
|
||||||
force-window=yes
|
force-window=yes
|
||||||
keep-open=yes
|
keep-open=yes
|
||||||
|
|
||||||
|
|
|
@ -3,24 +3,18 @@ return {
|
||||||
event = "VeryLazy",
|
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.
|
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 = {
|
opts = {
|
||||||
provider = "copilot",
|
providers = {
|
||||||
-- cursor_applying_provider = 'ollama',
|
|
||||||
copilot = {
|
copilot = {
|
||||||
model = "claude-3.5-sonnet"
|
model = "claude-3.5-sonnet"
|
||||||
},
|
},
|
||||||
ollama = {
|
ollama = {
|
||||||
model = "llama3.2:1b"
|
model = "llama3.2:1b"
|
||||||
},
|
},
|
||||||
behaviour = {
|
|
||||||
enable_cursor_planning_mode = false, -- enable cursor planning mode!
|
|
||||||
},
|
|
||||||
hints = { enabled = false },
|
|
||||||
vendors = {
|
|
||||||
copilot_claude_new = {
|
copilot_claude_new = {
|
||||||
__inherited_from = "copilot",
|
__inherited_from = "copilot",
|
||||||
model = "claude-3.7-sonnet",
|
model = "claude-3.7-sonnet",
|
||||||
},
|
},
|
||||||
copilot_claude_old= {
|
copilot_claude_old = {
|
||||||
__inherited_from = "copilot",
|
__inherited_from = "copilot",
|
||||||
model = "claude-3.5-sonnet",
|
model = "claude-3.5-sonnet",
|
||||||
},
|
},
|
||||||
|
@ -36,7 +30,13 @@ return {
|
||||||
__inherited_from = "copilot",
|
__inherited_from = "copilot",
|
||||||
model = "gemini-2.0-flash-001",
|
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`
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||||
build = "nix-shell -p cmake --command make",
|
build = "nix-shell -p cmake --command make",
|
||||||
|
|
|
@ -22,14 +22,14 @@ return {
|
||||||
},
|
},
|
||||||
build = 'nix run --extra-experimental-features flakes --extra-experimental-features nix-command .#build-plugin',
|
build = 'nix run --extra-experimental-features flakes --extra-experimental-features nix-command .#build-plugin',
|
||||||
keys = {
|
keys = {
|
||||||
{"<leader>n", vim.diagnostic.goto_next},
|
{ "<leader>n", vim.diagnostic.goto_next },
|
||||||
{"<leader>p", vim.diagnostic.goto_prev},
|
{ "<leader>p", vim.diagnostic.goto_prev },
|
||||||
{"<leader>f", vim.lsp.buf.code_action},
|
{ "<leader>f", vim.lsp.buf.code_action },
|
||||||
{"gd", vim.lsp.buf.definition},
|
{ "gd", vim.lsp.buf.definition },
|
||||||
{"gi", vim.lsp.buf.implementation},
|
{ "gi", vim.lsp.buf.implementation },
|
||||||
{"gr", vim.lsp.buf.references},
|
{ "gr", vim.lsp.buf.references },
|
||||||
{"<space><space>", vim.lsp.buf.hover},
|
{ "<space><space>", vim.lsp.buf.hover },
|
||||||
{"<leader>rn", vim.lsp.buf.rename},
|
{ "<leader>rn", vim.lsp.buf.rename },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
keymap = {
|
keymap = {
|
||||||
|
@ -41,7 +41,7 @@ return {
|
||||||
['<C-j>'] = { 'select_next', 'fallback' },
|
['<C-j>'] = { 'select_next', 'fallback' },
|
||||||
['<C-S-k>'] = { 'scroll_documentation_up', 'fallback' },
|
['<C-S-k>'] = { 'scroll_documentation_up', 'fallback' },
|
||||||
['<C-S-j>'] = { 'scroll_documentation_down', 'fallback' },
|
['<C-S-j>'] = { 'scroll_documentation_down', 'fallback' },
|
||||||
['<C-CR>'] = { 'accept', 'fallback'},
|
['<C-CR>'] = { 'accept', 'fallback' },
|
||||||
},
|
},
|
||||||
appearance = {
|
appearance = {
|
||||||
nerd_font_variant = 'mono'
|
nerd_font_variant = 'mono'
|
||||||
|
@ -63,7 +63,7 @@ return {
|
||||||
avante = {
|
avante = {
|
||||||
module = 'blink-cmp-avante',
|
module = 'blink-cmp-avante',
|
||||||
name = 'Avante',
|
name = 'Avante',
|
||||||
opts = { } -- options for blink-cmp-avante
|
opts = {} -- options for blink-cmp-avante
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -89,7 +89,8 @@ return {
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require('blink.cmp').setup(opts)
|
require('blink.cmp').setup(opts)
|
||||||
local lspconfig = require('lspconfig')
|
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 = {
|
local lsp_opts = {
|
||||||
servers = {
|
servers = {
|
||||||
basedpyright = {
|
basedpyright = {
|
||||||
|
@ -140,7 +141,7 @@ return {
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
-- Get the language server to recognize the `vim` global
|
-- Get the language server to recognize the `vim` global
|
||||||
globals = {'vim', 'use', 'awesome', 'client', 'root'},
|
globals = { 'vim', 'use', 'awesome', 'client', 'root' },
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
-- Make the server aware of Neovim runtime files
|
-- Make the server aware of Neovim runtime files
|
||||||
|
@ -159,8 +160,8 @@ return {
|
||||||
},
|
},
|
||||||
ltex = {
|
ltex = {
|
||||||
on_attach = function(_, _)
|
on_attach = function(_, _)
|
||||||
require("ltex_extra").setup{
|
require("ltex_extra").setup {
|
||||||
load_langs = {"nl-BE", "en-US", "en-GB"},
|
load_langs = { "nl-BE", "en-US", "en-GB" },
|
||||||
init_check = true,
|
init_check = true,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
@ -173,7 +174,7 @@ return {
|
||||||
filetypes = filetypes
|
filetypes = filetypes
|
||||||
},
|
},
|
||||||
bashls = {
|
bashls = {
|
||||||
filetypes = {"sh", "bash", "zsh"},
|
filetypes = { "sh", "bash", "zsh" },
|
||||||
},
|
},
|
||||||
texlab = {},
|
texlab = {},
|
||||||
nixd = {},
|
nixd = {},
|
||||||
|
@ -190,7 +191,7 @@ return {
|
||||||
rust_analyzer = {},
|
rust_analyzer = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
ruff = {},
|
ruff = {},
|
||||||
ts_ls= {},
|
ts_ls = {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for server, config in pairs(lsp_opts.servers) do
|
for server, config in pairs(lsp_opts.servers) do
|
||||||
|
|
Loading…
Reference in New Issue