Expand description
Colorscheme setup. Colorscheme and highlight group configuration helpers.
Exposes a dictionary with a set function applying base UI preferences (dark background, termguicolors)
and custom highlight groups (diagnostics, statusline, general UI).
Constantsยง
- COMMENTS_
FG ๐ - CURSOR_
BG ๐ - CURSOR_
FG ๐ - DIAGNOSTICS_
FG ๐ - DIAG_
ERROR_ ๐FG - DIAG_
HINT_ ๐FG - DIAG_
INFO_ ๐FG - DIAG_
OK_ ๐FG - DIAG_
WARN_ ๐FG - GITSIGNS_
ADDED ๐ - GITSIGNS_
CHANGED ๐ - GITSIGNS_
FG ๐ - GITSIGNS_
REMOVED ๐ - GLOBAL_
BG ๐ - GLOBAL_
FG ๐ - NONE ๐
- NON_
TEXT_ ๐FG - TREESITTER_
CONTEXT_ ๐BG
Functionsยง
- decimal_
to_ ๐hex_ color - Formats an RGB integer as a
#RRGGBBhex string. - dict
- [
Dictionary] with colorscheme and highlight helpers. - get_
default_ ๐hl_ opts - Shorthand to start building [
SetHighlightOpts]. - get_hl ๐
- Retrieves [
GetHlInfos] (single or map) for given highlight options. - get_
hl_ ๐multiple - Retrieves multiple [
HighlightInfos] entries (map variant) for given highlight options. - get_
hl_ ๐single - Retrieves [
HighlightInfos] of a single group. - get_
overridden_ ๐set_ hl_ opts - Retrieves the current highlight options for a given highlight group and applies overrides.
- hl_
opts_ ๐from_ hl_ infos - Builds a [
SetHighlightOptsBuilder] from [HighlightInfos], applying only present fields viaOption::map. - set
- Sets the desired Neovim colorscheme and custom highlight groups.
- set_hl ๐
- Sets a highlight group in the specified namespace, with error handling via Neovim notifications.