fix: "color" for items with documentation but a hex value which cannot be parsed

This commit is contained in:
Nikita Revenco 2024-12-19 17:30:49 +00:00
parent 662b6d3e53
commit fc54f2e51a

View file

@ -113,7 +113,8 @@ impl menu::Item for CompletionItem {
match maybe_color {
Some(color) => Span::styled("", Style::default().fg(color)),
None => Span::raw(""),
// there is documentation but it doesn't conform to the format to parse the hex color
None => Span::raw("color"),
}
})
}