summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/plugins/aider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/aider.lua')
-rw-r--r--neovim/.config/nvim/lua/plugins/aider.lua23
1 files changed, 23 insertions, 0 deletions
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<CR>', { noremap = true, silent = true })
+ end
+ }
+}