Repository navigation
Releases
scm.nvim v0.4.0
scm.nvim v0.4.0 makes a diff a place to learn what the code does.
- Reviews: press
\ein a diff and an Explainer writes a Review of the change: a Tour through its steps (]t,[t), a Pane at the right that explains only the line under the cursor (what it was, what it is now, a paragraph), values it predicts the line would leave behind, always labelled "predicted · not a real run", and a map of how the line gets run.Kgives a longer explanation and\aasks a question about the line. (#20) - Explainers: Claude Code is used by default.
:ScmExplainersadds the Claude API, any OpenAI-compatible endpoint or a command of your own, and each has astyle, such as "like I am new to this language". A key is never stored. - Safe with any repository: nothing is sent until you ask. Claude Code runs with read-only tools confined to the repository, without its settings, hooks, MCP servers or
CLAUDE.md, and every service is told the code is data, not instructions. A key is only sent over https. Kept Reviews are private to you. - A modern look: the Pane is a lighter surface with a rounded border that names the line and lists its keys; the Tour bar shows your progress through the steps. Nothing is near-white, and no text is cut short: everything wraps.
review = false turns all of it off.
Compatibility
The map of how a line gets run is drawn as a picture in a dock under the editor with Sprite 0.9.0 and sprite.nvim v0.8.0; anywhere else it is drawn with characters. The default Explainer needs the claude command. After upgrading, run :Lazy update scm.nvim sprite.nvim and restart Neovim.
Validation
The headless test suite passed in CI on the tagged commit.
Compare: v0.3.0...v0.4.0
scm.nvim v0.3.0
scm.nvim v0.3.0 shows a file's diff when you select it, and opens and updates the Panel much faster.
- Inline diffs: selecting a file shows its changes in the editor window: the whole file, removed lines in red above the added lines in green, the changed words marked more strongly, the new file's line numbers in the gutter, and an overview strip down the right edge. Changes compares the index with the file on disk, Staged Changes the last commit with the index, and Committed the branch's base with its last commit. A deleted file shows what was removed. (#18)
- The first screen does not wait on git: the start-up warm-up now collects committed history too, the first 100 rows are sent before the rest of a long list, and git is asked again only after the first screen is drawn. In a workspace of 11 repositories, the first rows reached Sprite in 8–17 ms where they took 113–136 ms. (#19)
- Only what changed is redrawn: unchanged rows are handed to Sprite as the same tables as last time, and an unchanged refresh sends nothing. A click that changes a few rows of a 2,050-row list is answered in about 6–9 ms where it took 10–18 ms. (#19)
- Faster scans: a repository's status and history are read side by side, and between four and eight repositories are scanned at once, by processor count. (#19)
Breaking: clicking a file, or pressing Enter on it, now shows its diff instead of opening it. Open the file itself with the row's hover button or the new o key. In keymaps, require("scm").act("open") shows the diff and act("file") opens the file.
Compatibility
The native dock needs Sprite 0.7.0 or later. The redraw speed-up needs Sprite 0.8.0 with sprite.nvim v0.7.0; with older versions every change sends the whole list, as before. After upgrading Sprite, run :Lazy update scm.nvim sprite.nvim and restart Neovim.
Validation
The headless test suite passed in CI on the tagged commit. Timings are when Sprite acknowledges the rows, not when pixels appear.
Compare: v0.2.0...v0.3.0
scm.nvim v0.2.0
scm.nvim v0.2.0 turns the Panel into a working Source Control view: it is laid out like VS Code's, it can stage, unstage, discard and commit, and it opens at once.
- VS Code's Source Control layout: a commit box and Commit button, groups with counts (Merge Changes, Staged Changes, Changes, Committed), and file rows with an icon, the directory dimmed beside the name, and a coloured status letter.
tswitches between list and tree. (#14) - Stage, unstage, discard and commit:
s,uandxact on a file, a folder or a whole group, and Ctrl-Enter (⌘Enter in the dock) commits. Discard always asks first and defaults to Cancel. Every path is passed to git as the exact file it names, so an oddly named file cannot widen a discard. (#14) - No Snacks, no file tree: SCM draws its own Panel and scans the editor window's working directory. The Snacks Panel and the lazygit triggers are gone. (#9, #10)
- Opens instantly: the Panel shows the last known rows at once and fills each repository as it lands, where it used to wait several seconds for the slowest one. Repository discovery no longer searches inside repositories or build folders, which had left the Panel empty on large project folders. (#7, #8)
- Less background Git work: startup warms only working-tree and staged status, and committed history fills in after the Panel opens. (#12)
- Very large change sets: a group lists at most
group_limitfiles (default 1000) and keeps its true count, so a branch that differs in tens of thousands of files no longer drops the native Panel. (#15) - Fixes: Enter reopens a collapsed repository (#16); opening a file replaces a start screen instead of splitting beside it (#17); the Follow shortcut keeps working while the sidebar has focus (#4).
Breaking: the Snacks Panel integration and the lazygit hand-off are removed. Coordinating with a file explorer is now left to your config.
Compatibility
The native dock needs a host that draws decorated list rows (virtual-list-rows-v2): Sprite 0.7.0 with sprite.nvim v0.6.0 or later. With an older host the Panel falls back to the terminal renderer, which shows the same rows as text. After upgrading Sprite, run :Lazy update scm.nvim sprite.nvim and restart Neovim.
Validation
The headless test suite passed in CI on the tagged commit.
scm.nvim v0.1.0
First release
Standalone source-control sidebar with ordinary Neovim splits and eligible Sprite native docks. Includes repository change discovery, diff/open actions, focus/navigation, explorer handoff, and refresh after editor events. Legacy Snacks integration remains optional.
This milestone does not implement staging, PR-target review, agent following, or automatic external filesystem watching. See README for scope and controls.
Validation
Headless handoff, core, explorer-scope, standalone workspace, and native workspace lifecycle suites passed on Neovim 0.13 nightly. No build step is required.