fn get_overridden_set_hl_opts(
hl_name: &str,
override_set_hl_opts: impl FnMut(SetHighlightOptsBuilder) -> SetHighlightOpts,
opts_builder: Option<GetHighlightOptsBuilder>,
) -> Result<SetHighlightOpts>Expand description
Retrieves the current highlight options for a given highlight group and applies overrides.
This function fetches the existing highlight information for the specified hl_name,
and then applies the provided override_set_hl_opts function to modify the options.
This is useful for incrementally changing highlight groups based on their current state.
ยงErrors
- If
get_hl_singlefails to retrieve the highlight info. - If
hl_opts_from_hl_infosfails to convert the highlight info.