summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@krotosaudio.com>2025-02-11 10:11:42 +0000
committerMichaël Ball <michael.ball@krotosaudio.com>2025-02-11 10:11:42 +0000
commit2b4146c747bf7c8ef44df4368f0270c3322e7e92 (patch)
treee866e321aede9e4d983306ed822c98bec472401f
parent83e16a6a2c58e944f3b2c28b8b87cef5ebb69431 (diff)
Aider support
-rw-r--r--.gitignore1
-rw-r--r--neovim/.config/nvim/lua/plugins/aider.lua23
-rw-r--r--zsh/.zshenv2
3 files changed, 26 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3c02d41..df67901 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
neovim/.local/share/nvim/site/pack/
neovim/.config/nvim/lazy-lock.json
.DS_Store
+.aider*
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
+ }
+}
diff --git a/zsh/.zshenv b/zsh/.zshenv
index d033692..bc88c29 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -20,3 +20,5 @@ export CMAKE_C_COMPILER=/usr/bin/clang
export CMAKE_CXX_COMPILER=/usr/bin/clang++
. "$HOME/.cargo/env"
+
+export OLLAMA_API_BASE=http://127.0.0.1:11434