From 0ee90ff3c81e72e8a67ed4aa7ca9dbc799c0c35b Mon Sep 17 00:00:00 2001 From: Michaƫl Ball <michael.ball@krotosaudio.com> Date: Wed, 26 Feb 2025 12:25:09 +0000 Subject: AI nonsense --- neovim/.config/nvim/lua/plugins/aider.lua | 2 +- neovim/.config/nvim/lua/plugins/codecompanion.lua | 31 +++++++++++++++++++++++ neovim/.config/nvim/lua/plugins/gen.lua | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 neovim/.config/nvim/lua/plugins/codecompanion.lua diff --git a/neovim/.config/nvim/lua/plugins/aider.lua b/neovim/.config/nvim/lua/plugins/aider.lua index 709c00b..0aa6745 100644 --- a/neovim/.config/nvim/lua/plugins/aider.lua +++ b/neovim/.config/nvim/lua/plugins/aider.lua @@ -4,7 +4,7 @@ return { config = function() require("aider").setup({ command = 'aider', -- Path to aider command - model = 'ollama_chat/qwen2.5', -- AI model to use + model = 'ollama_chat/qwen2.5-coder:3b', -- AI model to use mode = 'diff', -- Edit mode: 'diff' or 'inline' -- Floating window options float_opts = { 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', + }, + }, + }, + }, +} diff --git a/neovim/.config/nvim/lua/plugins/gen.lua b/neovim/.config/nvim/lua/plugins/gen.lua index 2fa89a5..55e85b6 100644 --- a/neovim/.config/nvim/lua/plugins/gen.lua +++ b/neovim/.config/nvim/lua/plugins/gen.lua @@ -1,7 +1,7 @@ return { 'David-Kunz/gen.nvim', opts = { - model = 'qwen2.5-coder:7b', + model = 'qwen2.5-coder:3b', display_mode = 'split', } } -- cgit v1.2.3