whatisgithub

What is prompt-reference.nvim?

r10a/prompt-reference.nvim — explained in plain English

Analysis updated 2026-05-18

10LuaAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A Neovim plugin that lets you collect several code snippets with instructions and copy them all at once for an AI chat.

Mindmap

mindmap
  root((prompt-reference.nvim))
    What it does
      Stages code snippets
      Attaches prompts
      Copies as one bundle
    Tech stack
      Lua
      Neovim
      tmux
    Use cases
      Multi file AI review
      Send to Claude Code
      Structured LLM prompts
    Audience
      Neovim users
      Developers
      AI assisted coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Select code across multiple files, add a prompt to each, and copy it all as one AI message.

USE CASE 2

Paste a structured multi-file review directly into a running Claude Code terminal session.

USE CASE 3

Build a reusable format of code plus instructions to paste into any LLM chat tool.

USE CASE 4

Speed up giving an AI assistant context on several unrelated code changes at once.

What is it built with?

LuaNeovimtmux

How does it compare?

r10a/prompt-reference.nvimatcold/torch-torch7-toolsgasparvardanyan/diactions.nvim
Stars101010
LanguageLuaLuaLua
Last pushed2014-05-29
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/52/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

prompt-reference.nvim is a plugin for the Neovim text editor that helps developers write clearer instructions for AI chat tools like Claude. Normally, if you want an AI to look at several different pieces of code across multiple files, you would copy each snippet one at a time, switch to your chat window, explain where it came from, and repeat that process for every file. This plugin lets you build up a single collected message instead. You select a piece of code in Neovim, type a short prompt describing what you want changed or checked about it, and the plugin stages that pairing of code and instruction. You can repeat this across as many files and code sections as you like, and a small review panel shows everything you have staged so far. When you are ready, you open the review window and copy the whole bundle to your clipboard in one step, formatted either as markdown or as XML, ready to paste into an AI chat. There is also an option to send the finished review directly into a running Claude Code session inside a terminal multiplexer called tmux, instead of copying it to the clipboard. In that mode the plugin automatically finds the terminal pane running Claude and pastes the review there, pressing Enter so it gets sent right away. This is a one way hand off: the plugin puts your review into the conversation but does not read the AI's reply back into Neovim. The plugin is installed through common Neovim plugin managers like lazy.nvim or packer.nvim, requires Neovim version 0.10 or newer, and is released under the MIT license, which allows free use including commercial use. It is meant for developers who already use Neovim and an AI coding assistant and want a faster, more organized way to hand the AI multiple pieces of context and instructions at once, rather than typing everything by hand in a chat window.

Copy-paste prompts

Prompt 1
Install prompt-reference.nvim with lazy.nvim and set up its default keymaps.
Prompt 2
Show me how to select code, add a prompt to it, and copy the review as markdown.
Prompt 3
Configure prompt-reference.nvim to send my review straight into my tmux Claude Code pane.
Prompt 4
Explain the difference between markdown and XML output styles in this plugin.
Prompt 5
Help me bind custom keys for add_selection, review, and copy_all instead of the defaults.

Frequently asked questions

What is prompt-reference.nvim?

A Neovim plugin that lets you collect several code snippets with instructions and copy them all at once for an AI chat.

What language is prompt-reference.nvim written in?

Mainly Lua. The stack also includes Lua, Neovim, tmux.

What license does prompt-reference.nvim use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is prompt-reference.nvim to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is prompt-reference.nvim for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.