aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2023-12-26 00:16:03 +0100
committerGitHub <noreply@github.com>2023-12-26 07:16:03 +0800
commitbbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca (patch)
tree85ba9d46cbe0d01a432f4bfb5f9ce475c0ee383f /runtime/lua/vim/_meta/api.lua
parent0a598c13b1863ba1aff378027c4376e3ab7048ee (diff)
downloadrneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.tar.gz
rneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.tar.bz2
rneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.zip
feat(extmarks): add virt_text_repeat_linebreak flag (#26625)
Problem: Unable to predict which byte-offset to place virtual text to make it repeat visually in the wrapped part of a line. Solution: Add a flag to nvim_buf_set_extmark() that causes virtual text to repeat in wrapped lines.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
-rw-r--r--runtime/lua/vim/_meta/api.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua
index c8c3e1c3af..ba18a16488 100644
--- a/runtime/lua/vim/_meta/api.lua
+++ b/runtime/lua/vim/_meta/api.lua
@@ -519,6 +519,8 @@ function vim.api.nvim_buf_line_count(buffer) end
--- text is selected or hidden because of scrolling with
--- 'nowrap' or 'smoothscroll'. Currently only affects
--- "overlay" virt_text.
+--- • virt_text_repeat_linebreak : repeat the virtual text on
+--- wrapped lines.
--- • hl_mode : control how highlights are combined with the
--- highlights of the text. Currently only affects virt_text
--- highlights, but might affect `hl_group` in later versions.