update fold method plus fix golangci lint causing error

also add keybinds to codecompanion
This commit is contained in:
2025-06-20 11:49:38 +01:00
parent ec9a456c74
commit 76f1f2fcc1
6 changed files with 1199 additions and 17 deletions

49
lua/plugins/ai/avante.lua Normal file
View File

@ -0,0 +1,49 @@
return {
{
'yetone/avante.nvim',
build = 'make',
event = 'VeryLazy',
version = false, -- Never set this value to "*"! Never!
---@module 'avante'
---@type avante.Config
opts = {
-- add any opts here
-- for example
provider = 'ollama',
providers = {
ollama = {
model = 'deepseek-r1:8b',
timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
temperature = 0.5,
max_tokens = 20480,
},
},
},
selector = {
--- @alias avante.SelectorProvider "native" | "fzf_lua" | "mini_pick" | "snacks" | "telescope" | fun(selector: avante.ui.Selector): nil
--- @type avante.SelectorProvider
provider = 'fzf',
-- Options override for custom providers
provider_opts = {},
},
},
dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
--- The below dependencies are optional,
'hrsh7th/nvim-cmp', -- autocompletion for avante commands and mentions
'ibhagwan/fzf-lua', -- for file_selector provider fzf
'nvim-tree/nvim-web-devicons', -- or echasnovski/mini.icons
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { 'markdown', 'Avante' },
},
ft = { 'markdown', 'Avante' },
},
},
},
}