Skip to main content

Module wrap

Module wrap 

Source
Expand description

autowrap — whether typing past textwidth breaks the line.

Lives here rather than in lattice-config for the same reason crate::IndentMethod does: the reflow engine in lattice-grammar consumes the resolved value, and lattice-config → lattice-grammar would be the wrong direction. This crate is the shared floor both sides already stand on.

See docs/dev/architecture/text-reflow.md §8.

Structs§

WrapWidth
textwidth, resolved for a specific buffer — the column reflow targets and, when autowrap allows, the column typing breaks at.

Enums§

AutoWrap
:set autowrap=.... Whether inserting a character past textwidth breaks the line and carries the remainder down.

Constants§

DEFAULT_TEXTWIDTH
The column a buffer wraps at when nobody has resolved config.