cursor-agent.nvim is a small Neovim plugin that runs the Cursor CLI Agent in a floating terminal and connects it directly to your code. You can send selections, file ranges, and diagnostics to the agent without leaving the editor.
I used to work in the Cursor IDE, but VS Code’s Vim integration never fit well with my Neovim-heavy workflow, too many keybindings and editor behaviors didn’t translate cleanly. When Cursor released the new CLI agent, I moved back to Neovim and built this plugin to keep the same “chat with context” workflow, but with proper Neovim ergonomics and no VS Code in the way.
I use AstroNvim myself, so it’s tested there, but it should work with any similar Neovim setup.
Why Use It
If you already use the Cursor CLI agent in the shell, this plugin brings that same experience inside Neovim:
-
Resizable floating terminal window
-
Toggle to show/hide instantly
-
Restart anytime for a clean conversation
-
No context switching out of your editor
The plugin adds the missing piece: sending buffer context (code + diagnostics) to the agent with a single keypress.
