aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-07-23 18:00:42 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-07-29 20:34:20 +0200
commit1495d36d63305862da3c4106455667d51b578707 (patch)
treebf2cabbdb905eff3d3c03be6c67c883fba90a7f2 /src/nvim/api/buffer.c
parent98c4b2cf627bf5156a0d83fe0bf60f3c23af6f1b (diff)
downloadrneovim-1495d36d63305862da3c4106455667d51b578707.tar.gz
rneovim-1495d36d63305862da3c4106455667d51b578707.tar.bz2
rneovim-1495d36d63305862da3c4106455667d51b578707.zip
feat(decorations): allow more than one stacked highlight in a virt_text
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r--src/nvim/api/buffer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 78e36e5ef0..47216996b4 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -1433,8 +1433,14 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id,
/// - hl_group : name of the highlight group used to highlight
/// this mark.
/// - virt_text : virtual text to link to this mark.
-/// - virt_text_pos : positioning of virtual text. Possible
-/// values:
+/// A list of [text, highlight] tuples, each representing a
+/// text chunk with specified highlight. `highlight` element
+/// can either be a a single highlight group, or an array of
+/// multiple highlight groups that will be stacked
+/// (highest priority last). A highlight group can be supplied
+/// either as a string or as an integer, the latter which
+/// can be obtained using |nvim_get_hl_id_by_name|.
+/// - virt_text_pos : position of virtual text. Possible values:
/// - "eol": right after eol character (default)
/// - "overlay": display over the specified column, without
/// shifting the underlying text.