Module colorizer.buffer

Buffer Provides highlighting functions for buffer.

Functions

add_highlight (bufnr, ns_id, line_start, line_end, data, opts, hl_opts) Create highlight and set highlights
highlight (bufnr, ns_id, line_start, line_end, opts, buf_local_opts) Highlight the buffer region.
parse_lines (bufnr, lines, line_start, opts) Parse the given lines for colors and return a table containing rgb_hex and range per line
reset_cache () Clean the highlight cache


Functions

add_highlight (bufnr, ns_id, line_start, line_end, data, opts, hl_opts)
Create highlight and set highlights
highlight (bufnr, ns_id, line_start, line_end, opts, buf_local_opts)
Highlight the buffer region. Highlight starting from line_start (0-indexed) for each line described by lines in the buffer id bufnr and attach it to the namespace id ns_id. - ns_id number: Table of namespace ids to clear - functions function: Table of detach functions to call
parse_lines (bufnr, lines, line_start, opts)
Parse the given lines for colors and return a table containing rgb_hex and range per line
reset_cache ()
Clean the highlight cache
generated by LDoc 1.5.0 Last updated 2026-03-27 11:23:16