diff options
| author | bfredl <bjorn.linse@gmail.com> | 2025-01-17 13:44:07 +0100 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2025-01-21 12:00:24 +0100 |
| commit | 4cced601c8cdfd6253266b035667dd0383a07ebe (patch) | |
| tree | 86409020fbd2442369d5008348844cc19c9103e0 /runtime/doc | |
| parent | 5dd60e01ace2621f2307eebeb92e9e7351210d3a (diff) | |
| download | rneovim-4cced601c8cdfd6253266b035667dd0383a07ebe.tar.gz rneovim-4cced601c8cdfd6253266b035667dd0383a07ebe.tar.bz2 rneovim-4cced601c8cdfd6253266b035667dd0383a07ebe.zip | |
feat(extmark): stack multiple highlight groups in `hl_group`
This has been possible in the "backend" for a while but
API was missing.
Followup: we will need a `details2=true` mode for `nvim_get_hl_id_by_name`
to return information in a way forward compatible with even further
enhancements.
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/api.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 5a6361d45f..1cc4350654 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2660,6 +2660,8 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts}) and below highlight groups can be supplied either as a string or as an integer, the latter of which can be obtained using |nvim_get_hl_id_by_name()|. + Multiple highlight groups can be stacked by passing an + array (highest priority last). • hl_eol : when true, for a multiline highlight covering the EOL of a line, continue the highlight for the rest of the screen line (just like for diff and cursorline highlight). diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 33ffeae2bb..b777d22a26 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -188,6 +188,7 @@ API • |nvim_echo()| `err` field to print error messages and `chunks` accepts highlight group IDs. • |nvim_open_win()| `relative` field can be set to "laststatus" and "tabline". +• |nvim_buf_set_extmark()| `hl_group` field can be an array of layered groups DEFAULTS |