refactor: change default_cursor config option to an enum
This commit is contained in:
parent
5a6c010e58
commit
4cfe6adadd
4 changed files with 16 additions and 15 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue