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

@ -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);