feat: let mini modes inherit gutter line number modes

This commit is contained in:
CJ van den Berg 2025-02-20 20:51:09 +01:00
parent eb569157a8
commit ec3bba2aff
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 30 additions and 12 deletions

View file

@ -78,7 +78,7 @@ pub const Mode = struct {
mode: []const u8,
name: []const u8 = "",
line_numbers: LineNumbers = .absolute,
line_numbers: LineNumbers = .inherit,
keybind_hints: *const KeybindHints,
cursor_shape: ?CursorShape = null,
selection_style: SelectionStyle,
@ -365,7 +365,7 @@ const BindingSet = struct {
syntax: KeySyntax = .flow,
on_match_failure: OnMatchFailure = .ignore,
name: []const u8,
line_numbers: LineNumbers = .absolute,
line_numbers: LineNumbers = .inherit,
cursor_shape: ?CursorShape = null,
selection_style: SelectionStyle,
insert_command: []const u8 = "",
@ -383,7 +383,7 @@ const BindingSet = struct {
syntax: KeySyntax = .flow,
on_match_failure: OnMatchFailure = .insert,
name: ?[]const u8 = null,
line_numbers: LineNumbers = .absolute,
line_numbers: LineNumbers = .inherit,
cursor: ?CursorShape = null,
inherit: ?[]const u8 = null,
selection: ?SelectionStyle = null,
@ -663,6 +663,7 @@ const BindingSet = struct {
};
pub const LineNumbers = enum {
inherit,
absolute,
relative,
};