refactor: BREAKING merge gutter_line_numbers and gutter_line_numbers_relative config options into an enum

This commit is contained in:
CJ van den Berg 2025-02-20 21:09:44 +01:00
parent ec3bba2aff
commit b9cc3936c8
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 30 additions and 32 deletions

View file

@ -3,8 +3,7 @@ const builtin = @import("builtin");
frame_rate: usize = 60,
theme: []const u8 = "default",
input_mode: []const u8 = "flow",
gutter_line_numbers: bool = true,
gutter_line_numbers_relative: bool = false,
gutter_line_numbers_mode: ?LineNumberMode = null,
gutter_line_numbers_style: DigitStyle = .ascii,
gutter_symbols: bool = true,
enable_terminal_cursor: bool = true,
@ -34,3 +33,9 @@ pub const DigitStyle = enum {
subscript,
superscript,
};
pub const LineNumberMode = enum {
none,
relative,
absolute,
};