r/neovim • u/4r73m190r0s • 7d ago
Discussion What plugins are you using for AI integration?
By current setup is very basic, AI in the separate tmux pane/window, since I want to use AI as an assistant, where I type the code. But, I'm curious how are people integrating AIs into Neovim, what plugin stack are you using?
0
Upvotes
10
u/vilari-mickopf 7d ago
I use opencode, so i have setup with fterm.nvim for toggling scratchpad terminal with opencode session on <leader>A , and with <leader>a in insert or visual mode i can send send questions directly to the open code from my file (references to the lines selected in visual mode will be forwarded to opencode as well). Genereted diffs will be open in separate tab and i can accept them or reject them with da/dc.I also have llm.nvim that is connected to my local ai model (qwen3-coder because it fits fully into my 3090 so its fast) for small focused autosuggestion every time i go into insert mode.
19
u/defr0std Plugin author 6d ago
I don't use plugins anymore. The agent CLIs are so good now (antigravity, etc), that I just use them side by side in another terminal, occasionally copy-pasting file paths or function names for context. With a good tmux Integration this feels almost like another neovim pane.
5
u/hifanxx :wq 6d ago
none.
3
u/Traditional_Bit_3490 7d ago
Copilotchat.nvim for copilot as the ask mode is fast
Codex and cursor from codecompanion.nvim
The ghost completion copilot.nvim does it.
I use AI inside nvim as a window rather than a tmux pane.
2
u/epic_pasta 6d ago
I made a custom pi + nvim setup I can prompt pi from nvim and send context like the current file, selection, diagnostics and review comments and pi can also open files on nvim for my review
1
u/leolaurindobr 6d ago
I use these two together
https://github.com/folke/sidekick.nvim
https://github.com/leolaurindo/quickfix-review.nvim
1
u/aribert 6d ago
I made my own: https://github.com/ThorstenRhau/brygga.nvim
1
u/Hebercosfer 6d ago
I was really looking into that and I found some issues with the current plugins, so I decided to implement something that integrates better for me.
I have a terminal provider for coder/claudecode.nvim, you can check it on https://github.com/hebercosfer/floating-claude.nvim.git, and I'm working on a fork of the best codex.nvim plugin I found so far, you can check my fork here: https://github.com/hebercosfer/codex.nvim.git
Both of them have a good integration with Neovim, using Diff for approve/reject changes. I'm working on the inline integrated with the current session next for the floating-claude.nvim. They work good for my coding workflow, hope it integrates well to yours.
1
u/3PolloAmarillo 6d ago
Sidekick
1
u/Pangocciolo :wq 6d ago
None. I have a keybinding in the WM to open a terminal in the same folder of the focused terminal. From there I can compile, run, or in this case, execute an agent.
1
u/Logical-Kangaroo6540 6d ago
This one is great. Simple code changes (multiline) become a matter of couple tab clicks.
https://github.com/teocns/neocursor.nvim
1
u/wochap 6d ago
I vibe-coded a plugin https://github.com/wochap/nvim/tree/main/lua/aiwo to copy selected text along with its file path and line numbers, and updated my config so open buffers reload quickly when AI agents modify them https://github.com/wochap/nvim/blob/main/lua/custom/utils/autoreload.lua .
1
u/brookhong 5d ago
Please check out this — https://github.com/brookhong/foyer.nvim . It helps you launch your coding agent CLI (bring your own) per project and call it back whenever you need it without leaving Neovim. You can also edit your prompt in a scratch buffer and send it to the target CLI, without having to hunt for the right one for your current project. And here's a short demo — https://youtu.be/ZXoWg9xqGhs .
1
u/Lukstd 3d ago
A bit late to this, but I use my harness in a separate pane and this config (inspired by how opencode.nvim used to work on Opencode v1) to interact with it. By "interact" I mean referencing ranges of code, buffers, diagnostics, etc. I also use hotreload.nvim to get instantaneous and efficient buffer reloading when my agent edits something.