update fold method plus fix golangci lint causing error
also add keybinds to codecompanion
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user