Merge branch 'master' into zig-0.14

This commit is contained in:
CJ van den Berg 2025-02-20 21:22:59 +01:00
commit c41cd07085
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
7 changed files with 54 additions and 36 deletions

View file

@ -40,6 +40,7 @@
["V", ["enter_mode", "visual line"], ["select_line_vim"]],
["n", "goto_next_match"],
["N", "goto_prev_match"],
["0", "move_begin"],
["^", "smart_move_begin"],
["$", "move_end"],

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,
};