Skip to content

Commit

Permalink
Try add aider
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Nov 15, 2024
1 parent e6006c6 commit cea4bfa
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ _tmp/*
bun.lockb
lib
.env
.aider*
7 changes: 7 additions & 0 deletions aider
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# git config user.email "[email protected]"
# git config user.name "utensil"
# docker run --rm -it --user $(id -u):$(id -g) --volume $(pwd):/app dockerproxy.net/paulgauthier/aider-full --model github/gpt-4o --dark-mode --subtree-only "$@"

export CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ CPATH=/opt/homebrew/opt/llvm/include LIBRARY_PATH=/opt/homebrew/opt/llvm/lib
uvx --python 3.11 --from aider-chat[help,playwright] aider --model github/gpt-4o --dark-mode --subtree-only "$@"
8 changes: 7 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ prep-uv:

prep-py:
uv python install 3.11
uv venv --python 3.11
uv venv --python 3.11 --seed

prep-sbar:
#!/usr/bin/env bash
Expand Down Expand Up @@ -449,3 +449,9 @@ check-dirs SRC DST:
# rip {{DST}}/.hash.jw
echo "Open {{DST}}/.hash.jw to inspect"
prep-llm:
which aichat || brew install aichat
which cortex || echo "Visit https://cortex.so/docs/installation to download and install cortex"
docker pull dockerproxy.net/paulgauthier/aider-full
cp -f aider /usr/local/bin

26 changes: 25 additions & 1 deletion uts-plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,31 @@ local plugins = {
},
},
-- {
-- "ddzero2c/aider.nvim",
-- opts = {
-- {
-- command = "aider", -- Path to aider command
-- model = "github/gpt-4o",
-- -- model = "sonnet", -- AI model to use
-- mode = "inline", -- 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",
-- },
-- },
-- },
-- keys = {
-- { "<leader>po", "<cmd>AiderEdit<cr>", desc = "AiderEdit", mode = "x" },
-- { "<leader>po", "<cmd>AiderEdit<cr>", desc = "AiderEdit", mode = "n" },
-- },
-- },
-- {
-- "zbirenbaum/copilot-cmp",
-- after = {
-- "copilot.vim",
Expand All @@ -1017,7 +1042,6 @@ local plugins = {
-- require("copilot_cmp").setup()
-- end,
-- },

{
"Julian/lean.nvim",
event = { "BufReadPre *.lean", "BufNewFile *.lean" },
Expand Down

0 comments on commit cea4bfa

Please sign in to comment.