Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 454 Bytes

File metadata and controls

19 lines (12 loc) · 454 Bytes

Buffer centering

Adds editor option centering_width

  • centering_width = N means that the buffer will be left padded, so that line with N width is horizontally centered within the terminal
  • centering_width = null means do not pad, default behavior

Usage

Configure fields in Config in editor.zig:

pub const centering_width: ?usize = 140;

Screenshots

Screenshot screen centering