diff options
author | Michaël Ball <michael.ball@krotosaudio.com> | 2025-02-26 12:25:09 +0000 |
---|---|---|
committer | Michaël Ball <michael.ball@krotosaudio.com> | 2025-02-26 12:25:09 +0000 |
commit | 0ee90ff3c81e72e8a67ed4aa7ca9dbc799c0c35b (patch) | |
tree | 59c4df10bd8359a8e92efe4c069f618ec00c5ded | |
parent | ea91058737fa7b7b74e834d964639052fd87b93a (diff) |
AI nonsense
-rw-r--r-- | neovim/.config/nvim/lua/plugins/aider.lua | 2 | ||||
-rw-r--r-- | neovim/.config/nvim/lua/plugins/codecompanion.lua | 31 | ||||
-rw-r--r-- | neovim/.config/nvim/lua/plugins/gen.lua | 2 |
3 files changed, 33 insertions, 2 deletions
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', } } |