fix: handle completion items with no type icon

superhtml fix
This commit is contained in:
CJ van den Berg 2025-09-13 20:06:44 +02:00
parent 76600bc6bd
commit 9bdc3e0a0a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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 => "󰊕",