From 0ee90ff3c81e72e8a67ed4aa7ca9dbc799c0c35b Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Wed, 26 Feb 2025 12:25:09 +0000 Subject: AI nonsense --- neovim/.config/nvim/lua/plugins/codecompanion.lua | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 neovim/.config/nvim/lua/plugins/codecompanion.lua (limited to 'neovim/.config/nvim/lua/plugins/codecompanion.lua') 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', + }, + }, + }, + }, +} -- cgit v1.2.3