refactor: change default_cursor config option to an enum

This commit is contained in:
CJ van den Berg 2025-11-18 15:29:41 +01:00
parent 5a6c010e58
commit 4cfe6adadd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 16 additions and 15 deletions

View file

@ -24,7 +24,7 @@ idle_actions: []const IdleAction = &default_actions,
enable_format_on_save: bool = false,
restore_last_cursor_position: bool = true,
follow_cursor_on_buffer_switch: bool = false, //scroll cursor into view on buffer switch
default_cursor: []const u8 = "default",
default_cursor: CursorShape = .default,
enable_auto_save: bool = false,
limit_auto_save_file_types: ?[]const []const u8 = null, // null means *all*
@ -114,3 +114,13 @@ pub const WhitespaceMode = enum {
full,
none,
};
pub const CursorShape = enum {
default,
block_blink,
block,
underline_blink,
underline,
beam_blink,
beam,
};