Update Avante config
This commit is contained in:
parent
cb90e7296c
commit
25b24b72e1
|
@ -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
|
||||
|
||||
|
|
|
@ -3,24 +3,18 @@ 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',
|
||||
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 = {
|
||||
providers = {
|
||||
copilot = {
|
||||
model = "claude-3.5-sonnet"
|
||||
},
|
||||
ollama = {
|
||||
model = "llama3.2:1b"
|
||||
},
|
||||
copilot_claude_new = {
|
||||
__inherited_from = "copilot",
|
||||
model = "claude-3.7-sonnet",
|
||||
},
|
||||
copilot_claude_old= {
|
||||
copilot_claude_old = {
|
||||
__inherited_from = "copilot",
|
||||
model = "claude-3.5-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",
|
||||
|
|
|
@ -22,14 +22,14 @@ return {
|
|||
},
|
||||
build = 'nix run --extra-experimental-features flakes --extra-experimental-features nix-command .#build-plugin',
|
||||
keys = {
|
||||
{"<leader>n", vim.diagnostic.goto_next},
|
||||
{"<leader>p", vim.diagnostic.goto_prev},
|
||||
{"<leader>f", vim.lsp.buf.code_action},
|
||||
{"gd", vim.lsp.buf.definition},
|
||||
{"gi", vim.lsp.buf.implementation},
|
||||
{"gr", vim.lsp.buf.references},
|
||||
{"<space><space>", vim.lsp.buf.hover},
|
||||
{"<leader>rn", vim.lsp.buf.rename},
|
||||
{ "<leader>n", vim.diagnostic.goto_next },
|
||||
{ "<leader>p", vim.diagnostic.goto_prev },
|
||||
{ "<leader>f", vim.lsp.buf.code_action },
|
||||
{ "gd", vim.lsp.buf.definition },
|
||||
{ "gi", vim.lsp.buf.implementation },
|
||||
{ "gr", vim.lsp.buf.references },
|
||||
{ "<space><space>", vim.lsp.buf.hover },
|
||||
{ "<leader>rn", vim.lsp.buf.rename },
|
||||
},
|
||||
opts = {
|
||||
keymap = {
|
||||
|
@ -41,7 +41,7 @@ return {
|
|||
['<C-j>'] = { 'select_next', 'fallback' },
|
||||
['<C-S-k>'] = { 'scroll_documentation_up', 'fallback' },
|
||||
['<C-S-j>'] = { 'scroll_documentation_down', 'fallback' },
|
||||
['<C-CR>'] = { 'accept', 'fallback'},
|
||||
['<C-CR>'] = { 'accept', 'fallback' },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'mono'
|
||||
|
@ -63,7 +63,7 @@ return {
|
|||
avante = {
|
||||
module = 'blink-cmp-avante',
|
||||
name = 'Avante',
|
||||
opts = { } -- options for blink-cmp-avante
|
||||
opts = {} -- options for blink-cmp-avante
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -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 = {
|
||||
|
@ -140,7 +141,7 @@ return {
|
|||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = {'vim', 'use', 'awesome', 'client', 'root'},
|
||||
globals = { 'vim', 'use', 'awesome', 'client', 'root' },
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
|
@ -159,8 +160,8 @@ return {
|
|||
},
|
||||
ltex = {
|
||||
on_attach = function(_, _)
|
||||
require("ltex_extra").setup{
|
||||
load_langs = {"nl-BE", "en-US", "en-GB"},
|
||||
require("ltex_extra").setup {
|
||||
load_langs = { "nl-BE", "en-US", "en-GB" },
|
||||
init_check = true,
|
||||
}
|
||||
end,
|
||||
|
@ -173,7 +174,7 @@ return {
|
|||
filetypes = filetypes
|
||||
},
|
||||
bashls = {
|
||||
filetypes = {"sh", "bash", "zsh"},
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
},
|
||||
texlab = {},
|
||||
nixd = {},
|
||||
|
@ -190,7 +191,7 @@ return {
|
|||
rust_analyzer = {},
|
||||
gopls = {},
|
||||
ruff = {},
|
||||
ts_ls= {},
|
||||
ts_ls = {},
|
||||
}
|
||||
}
|
||||
for server, config in pairs(lsp_opts.servers) do
|
||||
|
|
Loading…
Reference in New Issue