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

View File

@ -5,17 +5,21 @@ return {
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
{ 'nvim-lua/plenary.nvim' },
},
keys = {
{ '<leader>cc', '<cmd>CodeCompanionChat Toggle<cr>', desc = 'Open AI chat' },
{ '<leader>cw', '<cmd>CodeCompanionAction<cr>', desc = 'Start new cody chat' },
},
opts = {
adapters = {
ollama = function()
return require('codecompanion.adapters').extend('ollama', {
schema = {
model = {
default = 'hf.co/Qwen/Qwen2.5-Coder-7B-Instruct-GGUF:latest',
},
num_ctx = {
default = 4096,
default = 'deepseek-r1',
},
-- num_ctx = {
-- default = 4096,
-- },
},
})
end,