-- Typed review comments on top of codediff, exported as markdown for an agent. -- nui.nvim draws the comment popup. vim.pack.add({ 'https://github.com/MunifTanjim/nui.nvim', 'https://github.com/georgeguimaraes/review.nvim', }) require('review').setup({ -- base = nil: origin's cached HEAD, then main or master. The codediff -- mappings (gm, gR) keep the fuller remote fallback for -- repos where origin has no cached HEAD. branch = { base = nil }, export = { -- Clipboard is the whole loop: q exports, then paste into Claude Code. clipboard = true, }, }) local function map(mode, lhs, rhs, desc) vim.keymap.set(mode, lhs, rhs, { desc = desc }) end map('n', 'rr', 'Review', 'Review working tree') map('n', 'rb', 'Review branch', 'Review branch') map('n', 'rc', 'Review commits', 'Review commits') map({ 'n', 'v' }, 'rn', 'Review note', 'Review note')