From 2b4146c747bf7c8ef44df4368f0270c3322e7e92 Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Tue, 11 Feb 2025 10:11:42 +0000 Subject: Aider support --- neovim/.config/nvim/lua/plugins/aider.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 neovim/.config/nvim/lua/plugins/aider.lua (limited to 'neovim/.config/nvim/lua/plugins/aider.lua') diff --git a/neovim/.config/nvim/lua/plugins/aider.lua b/neovim/.config/nvim/lua/plugins/aider.lua new file mode 100644 index 0000000..709c00b --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/aider.lua @@ -0,0 +1,23 @@ +return { + { + "ddzero2c/aider.nvim", + config = function() + require("aider").setup({ + command = 'aider', -- Path to aider command + model = 'ollama_chat/qwen2.5', -- AI model to use + mode = 'diff', -- Edit mode: 'diff' or 'inline' + -- Floating window options + float_opts = { + relative = 'editor', + width = 0.8, -- 80% of editor width + height = 0.8, -- 80% of editor height + style = 'minimal', + border = 'rounded', + title = ' Aider ', + title_pos = 'center', + }, + }) + vim.keymap.set({ 'v', 'n' }, 'ga', ':AiderEdit', { noremap = true, silent = true }) + end + } +} -- cgit v1.2.3