Skip to main content

Module gutter

Module gutter 

Source
Expand description

The gutter, as an ordered list of components rather than a line-number column.

Helix’s helix-view/src/gutter.rs does not draw line numbers; it draws GutterType::{LineNumbers, Diagnostics, Diff, Spacer, CodeActionHint}, each with a width and a renderer, in configurable order. That shape is taken here for a specific reason: diagnostics arrive at M3 and git-diff markers at M5, and both want this column. A hardcoded line-number gutter would land the feature and lose the design, and the second component is what forces the rewrite.

So Diagnostics and Diff exist today, reserve their cell, and draw nothing. M3 and M5 fill in a function instead of re-laying-out the editor.

Structs§

Gutter
The gutter: components in draw order.

Enums§

GutterComponent
One column, or group of columns, in the gutter.