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
|
|
@ -14,6 +14,7 @@ const command = @import("command");
|
|||
const EventHandler = @import("EventHandler");
|
||||
const KeyEvent = input.KeyEvent;
|
||||
const SelectionStyle = @import("Buffer").Selection.Style;
|
||||
pub const CursorShape = @import("config").CursorShape;
|
||||
|
||||
const parse_flow = @import("parse_flow.zig");
|
||||
const parse_vim = @import("parse_vim.zig");
|
||||
|
|
@ -743,16 +744,6 @@ pub const LineNumbers = enum {
|
|||
relative,
|
||||
};
|
||||
|
||||
pub const CursorShape = enum {
|
||||
default,
|
||||
block_blink,
|
||||
block,
|
||||
underline_blink,
|
||||
underline,
|
||||
beam_blink,
|
||||
beam,
|
||||
};
|
||||
|
||||
pub fn get_or_create_namespace_config_file(allocator: std.mem.Allocator, namespace_name: []const u8) ![]const u8 {
|
||||
if (root.read_keybind_namespace(allocator, namespace_name)) |content| {
|
||||
allocator.free(content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue