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 bylinesin the buffer idbufnrand attach it to the namespace idns_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