From da7a2d23300cf5ce904f7441e7416c52491400c7 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 26 Aug 2024 20:57:27 +0200 Subject: [PATCH] feat: add beam and underline cursors to helix modes --- src/tui/mode/input/helix/insert.zig | 1 + src/tui/mode/input/helix/normal.zig | 1 + src/tui/mode/input/helix/select.zig | 1 + 3 files changed, 3 insertions(+) diff --git a/src/tui/mode/input/helix/insert.zig b/src/tui/mode/input/helix/insert.zig index 257455e..41ca65f 100644 --- a/src/tui/mode/input/helix/insert.zig +++ b/src/tui/mode/input/helix/insert.zig @@ -35,6 +35,7 @@ pub fn create(a: Allocator) !tui.Mode { .name = "INS", .description = "helix", .line_numbers = if (tui.current().config.vim_insert_gutter_line_numbers_relative) .relative else .absolute, + .cursor_shape = .beam, }; } diff --git a/src/tui/mode/input/helix/normal.zig b/src/tui/mode/input/helix/normal.zig index cb0eba0..0bf9ee9 100644 --- a/src/tui/mode/input/helix/normal.zig +++ b/src/tui/mode/input/helix/normal.zig @@ -37,6 +37,7 @@ pub fn create(a: Allocator) !tui.Mode { .description = "helix", .line_numbers = if (tui.current().config.vim_normal_gutter_line_numbers_relative) .relative else .absolute, .keybind_hints = &hints, + .cursor_shape = .block, }; } diff --git a/src/tui/mode/input/helix/select.zig b/src/tui/mode/input/helix/select.zig index 5a02467..3bd9be2 100644 --- a/src/tui/mode/input/helix/select.zig +++ b/src/tui/mode/input/helix/select.zig @@ -37,6 +37,7 @@ pub fn create(a: Allocator) !tui.Mode { .description = "helix", .line_numbers = if (tui.current().config.vim_visual_gutter_line_numbers_relative) .relative else .absolute, .keybind_hints = &hints, + .cursor_shape = .underline, }; }