hl_opts_from_hl_infos

Function hl_opts_from_hl_infos 

Source
fn hl_opts_from_hl_infos(
    hl_infos: &HighlightInfos,
) -> Result<SetHighlightOptsBuilder>
Expand description

Builds a [SetHighlightOptsBuilder] from [HighlightInfos], applying only present fields via Option::map.

Returns a color_eyre::Result. Errors if blend (u32) cannot convert to u8 and notifies it to Neovim.

ยงErrors

  • The blend value cannot fit into a u8.