Revue Companion for Neovim https://revue.cleangame.dev/docs/editors
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-30 23:25:15 +00:00
.forgejo/workflows Neovim: a release-nvim workflow releases the plugin and publishes it to its own repository 2026-11-13 13:54:37 +01:00
doc Neovim: a pull request's tickets show as their keys, and gx on one opens it 2026-11-15 21:33:52 +01:00
ftplugin Neovim: a pull request's page and the review's conversations show bold, italic and code instead of Markdown's ** and backticks 2026-11-15 21:06:31 +01:00
lua/revue_companion Release nvim 0.1.2 2026-11-30 23:25:15 +00:00
media Neovim: the README's pictures show the readable tab names, Markdown drawn, no line numbers in the plugin's buffers and the counts in sight 2026-11-15 21:12:00 +01:00
plugin Neovim: review a pull request in a tab, from its files to the verdict 2026-11-13 13:54:30 +01:00
tests Neovim: the startup time spec allows for coverage's slowdown 2026-11-15 21:55:24 +01:00
.gitignore Neovim: tasks to test and lint the plugin against a fake revue 2026-11-13 09:38:57 +01:00
LICENSE-APACHE Neovim, VS Code: the MIT and Apache-2.0 license files come with the plugin 2026-11-15 21:47:48 +01:00
LICENSE-MIT Neovim, VS Code: the MIT and Apache-2.0 license files come with the plugin 2026-11-15 21:47:48 +01:00
PLAN.md Links: Revue Companion and Revue live under cleangamedev on Forgejo now 2026-11-30 23:51:16 +01:00
README.md Links: Revue Companion and Revue live under cleangamedev on Forgejo now 2026-11-30 23:51:16 +01:00
selene.toml Neovim: tasks to test and lint the plugin against a fake revue 2026-11-13 09:38:57 +01:00
stylua.toml Neovim: tasks to test and lint the plugin against a fake revue 2026-11-13 09:38:57 +01:00
Taskfile.yml Neovim: :Revue list and :Revue pick show your repository's pull requests, and each one's page 2026-11-13 10:56:08 +01:00
vim.yml Neovim: tasks to test and lint the plugin against a fake revue 2026-11-13 09:38:57 +01:00

revue-companion.nvim

Revue in Neovim: your repository's pull requests, a whole review without leaving Neovim, and the way back, Revue opening a pull request in the Neovim that has its branch.

A review in its own Neovim tab: the pull request's files as a tree on the left, PaymentService.kt before and at the head side by side in diff mode, and under its changed lines a conversation with its replies, reactions and your pending comment

  • The branch's pull request: :Revue opens it in Revue, :Revue browse in the browser, :Revue yank copies its link, and require("revue_companion").status() puts #12 ✓ in your statusline.
  • The list and each pull request's page: :Revue list (Revue's sections as folds, a filter, a search), :Revue pick through your vim.ui.select picker, and a page per pull request with its files, conversation, Slack threads and stack.
  • In your own files: signs where the pull request changes them, your pending comments, :Revue diff against its base, :Revue comment on a selection.
  • A review in a tab: :Revue review shows the changed files as a tree and each file before and at the head in diff mode, the conversations under their lines. Reply, resolve, react, comment on either side, edit and delete your drafts, apply suggested changes, mark files viewed, then :Revue submit with a summary and a verdict.
  • The way back: Revue's Open in editor opens a pull request here, in the tab that has its branch.

It asks Revue everything by running the revue command, so no token ever enters Neovim, and nothing it runs blocks the editor. Revue's app needn't be running.

Requirements

  • Neovim 0.11 or later.
  • Revue, installed. The review needs a Revue that answers editor 4 (revue --version says it), the way back editor 9; the plugin says when yours is too old for something.

Installing

With vim.pack, Neovim's own plugin manager (Neovim 0.12 or later):

vim.pack.add({
  { src = "https://forgejo.cleangame.dev/cleangamedev/revue-companion.nvim", version = vim.version.range("*") },
})

That's the whole installation: nothing to call, nothing to set, nothing to lazy-load. vim.pack.update() brings new releases (vX.Y.Z tags).

The plugin loads itself lazily, so whatever installs it, don't lazy-load it (no cmd, keys or event): that would only hide :Revue and the <Plug> mappings until then.

  • lazy.nvim: { url = "https://forgejo.cleangame.dev/cleangamedev/revue-companion.nvim", version = "*" }
  • mini.deps: MiniDeps.add({ source = "https://forgejo.cleangame.dev/cleangamedev/revue-companion.nvim" }) (its main is always the latest release)
  • Neovim 0.11, by hand: git clone https://forgejo.cleangame.dev/cleangamedev/revue-companion.nvim ~/.local/share/nvim/site/pack/revue/start/revue-companion.nvim, then :helptags ALL.

Then :checkhealth revue_companion says whether it finds Revue, and what it answers.

Using it

:help revue-companion has it all. In short:

Command Does
:Revue Opens the branch's pull request in Revue
:Revue list / :Revue pick The repository's pull requests
:Revue review [LINK] Reviews the branch's pull request (or LINK's) in a tab
:Revue submit Submits the review
:Revue threads The review's conversations in the quickfix list
:Revue comment A pending comment on the lines selected
:Revue diff The current file against the pull request's base

:Revue list puts the repository's open pull requests in Revue's sections, each with its author, review and checks; <CR> on one shows its page, with its files and conversation.

The pull requests list: the branch's pull request, those to review, reviewed before, yours and the others, each with its author, age, review, checks and comments

Pull request #7's page: its state and branches, review, checks and ticket, the files it changes and the start of its conversation

In a file the branch's pull request changes, signs mark the lines it adds and changes, and your pending comment shows at the end of its line.

PaymentService.kt with the pull request's changes as signs beside the line numbers and a pending comment at the end of line 18

No key is mapped for you: each command has a <Plug> mapping (vim.keymap.set("n", "<leader>rr", "<Plug>(RevueReview)")). The plugin's own buffers have their keys, listed by g? there.

Settings, all optional, in vim.g.revue_companion anywhere in your config:

vim.g.revue_companion = {
  path = nil,          -- the revue executable, when it isn't found
  headless = true,     -- let the revue command answer when the app isn't running
  signs = true,        -- the pull request's changes in your files
  comments = true,     -- your pending comments in your files
  register = "auto",   -- tell Revue this Neovim runs, for its Open in editor (not over SSH or in a container)
  auto_viewed = false, -- in a review, mark a file viewed when you leave it at its end
}

Where it's made

This repository is published from the nvim/ folder of cleangamedev/revue-companion, the Revue companions for every editor, at each release. Issues and changes go there. The tests run here as well: task test, task lint, task doc (they fetch mini.test and luacov into .deps/; StyLua and selene come from PATH).

License

MIT OR Apache-2.0, like Revue.