diff --git a/.gitignore b/.gitignore index 83ed3c0..d6852e6 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ _tmp/* bun.lockb lib .env +.aider* diff --git a/aider b/aider new file mode 100755 index 0000000..b3e5d8f --- /dev/null +++ b/aider @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# git config user.email "utensilcandel@gmail.com" +# 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 "$@" diff --git a/justfile b/justfile index 896979a..aae01be 100644 --- a/justfile +++ b/justfile @@ -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 @@ -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 + diff --git a/uts-plugins.lua b/uts-plugins.lua index 7fcd693..5b7e4cb 100644 --- a/uts-plugins.lua +++ b/uts-plugins.lua @@ -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 = { + -- { "po", "AiderEdit", desc = "AiderEdit", mode = "x" }, + -- { "po", "AiderEdit", desc = "AiderEdit", mode = "n" }, + -- }, + -- }, + -- { -- "zbirenbaum/copilot-cmp", -- after = { -- "copilot.vim", @@ -1017,7 +1042,6 @@ local plugins = { -- require("copilot_cmp").setup() -- end, -- }, - { "Julian/lean.nvim", event = { "BufReadPre *.lean", "BufNewFile *.lean" },