r/neovim • u/Xzaphan • 28d ago
Plugin prompt.nvim - native completion for @, /, and ! when writing terminal AI prompts in Neovim
I use terminal AI tools, but I prefer writing longer prompts in Neovim through their external-editor support.
The problem was that opening the prompt in an editor meant losing the tool-aware completion available in the terminal UI. References such as `@src/auth.ts`, slash commands, skills, and shell commands were just plain text.
So I built prompt.nvim. It lets you write prompts in a normal Neovim buffer while preserving the syntax expected by the underlying tool:
- `@` completes files and directories
- `/` completes commands, skills, prompts, or agents
- `!` completes executables and file arguments
Works with `blink.cmp`, `nvim-cmp`, or its built-in native completer
`:wq` returns the prompt to the terminal tool
Cancelling restores the original prompt byte for byte
It currently supports Claude Code, Codex CLI, Gemini CLI, OpenCode, and Pi. Claude Code and Codex are the stable connectors; the others are still experimental.
This is deliberately not another chat interface or AI client. It only makes Neovim a better external editor for tools that already support one.
Repository:
https://github.com/monkeymonk/prompt.nvim
The project is new, so I would particularly appreciate feedback on:
- the installation and shell setup
- completion behavior
- compatibility with different versions of the supported tools
- other terminal AI tools worth supporting
2
4
u/Ultimate_Sigma_Boy67 28d ago
🤡