Skip to content

scm.nvim v0.4.0

Latest

Choose a tag to compare

@HundredBillion HundredBillion released this 19 Nov 18:12
5af84d3

scm.nvim v0.4.0 makes a diff a place to learn what the code does.

  • Reviews: press \e in 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. K gives a longer explanation and \a asks a question about the line. (#20)
  • Explainers: Claude Code is used by default. :ScmExplainers adds the Claude API, any OpenAI-compatible endpoint or a command of your own, and each has a style, 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