re-organised config

This commit is contained in:
Fergus Molloy
2025-06-19 14:31:13 +01:00
parent 309b47ceb5
commit ec9a456c74
18 changed files with 91 additions and 183 deletions

View File

@ -0,0 +1,35 @@
return {
{
'olimorris/codecompanion.nvim',
dependencies = {
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
{ 'nvim-lua/plenary.nvim' },
},
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,
},
},
})
end,
allow_insecure = true,
},
--Refer to: https://github.com/olimorris/codecompanion.nvim/blob/main/lua/codecompanion/config.lua
strategies = {
chat = {
adapter = 'ollama',
completion_provider = 'blink', -- blink|cmp|coc|default
},
inline = { adapter = 'ollama' },
cmd = { adapter = 'ollama' },
},
},
},
}