diff options
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/codecompanion.lua')
-rw-r--r-- | neovim/.config/nvim/lua/plugins/codecompanion.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/plugins/codecompanion.lua b/neovim/.config/nvim/lua/plugins/codecompanion.lua new file mode 100644 index 0000000..b05497c --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/codecompanion.lua @@ -0,0 +1,31 @@ +return { + { + "olimorris/codecompanion.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, + opts = { + adapters = { + qwen = function() + return require('codecompanion.adapters').extend('ollama', { + name = 'qwen', + schema = { + model = { + default = 'qwen2.5-coder:3b', + }, + }, + }) + end, + }, + strategies = { + chat = { + adapter = 'qwen', + }, + inline = { + adapter = 'qwen', + }, + }, + }, + }, +} |