feat: allow cursor shape configuration for mini and overlay modes

This commit is contained in:
CJ van den Berg 2024-12-20 13:59:08 +01:00
parent d2671259f4
commit ca784d1712
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 6 additions and 9 deletions

View file

@ -1096,8 +1096,9 @@ fn set_terminal_style(self: *Self) void {
}
}
pub fn translate_cursor_shape(in: keybind.CursorShape) renderer.CursorShape {
return switch (in) {
pub fn get_cursor_shape(self: *Self) renderer.CursorShape {
const shape = if (self.input_mode) |mode| mode.cursor_shape else .block;
return switch (shape) {
.default => .default,
.block_blink => .block_blink,
.block => .block,