From 9bdc3e0a0aff07496c37cfabfa62d5d748edc289 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sat, 13 Sep 2025 20:06:44 +0200 Subject: [PATCH] fix: handle completion items with no type icon superhtml fix --- src/tui/mode/overlay/completion_palette.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/mode/overlay/completion_palette.zig b/src/tui/mode/overlay/completion_palette.zig index eac3856..defc212 100644 --- a/src/tui/mode/overlay/completion_palette.zig +++ b/src/tui/mode/overlay/completion_palette.zig @@ -117,6 +117,7 @@ fn select(menu: **Type.MenuState, button: *Type.ButtonState) void { } const CompletionItemKind = enum(u8) { + None = 0, Text = 1, Method = 2, Function = 3, @@ -146,6 +147,7 @@ const CompletionItemKind = enum(u8) { fn kind_icon(kind: CompletionItemKind) []const u8 { return switch (kind) { + .None => " ", .Text => "󰊄", .Method => "îȘŒ", .Function => "󰊕",