aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt4
-rw-r--r--runtime/doc/news.txt13
-rw-r--r--runtime/lua/vim/_meta/api.lua4
-rw-r--r--runtime/lua/vim/_meta/api_keysets.lua1
4 files changed, 16 insertions, 6 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index ec3dfebbc0..760d0804a6 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2698,6 +2698,10 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts})
When a character is supplied it is used as |:syn-cchar|.
"hl_group" is used as highlight for the cchar if provided,
otherwise it defaults to |hl-Conceal|.
+ • conceal_lines: string which should be empty. When
+ provided, lines in the range are not drawn at all
+ (according to 'conceallevel'); the next unconcealed line
+ is drawn instead.
• spell: boolean indicating that spell checking should be
performed within this extmark
• ui_watched: boolean that indicates the mark should be
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 05d14600f8..25f6255ed3 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -202,13 +202,14 @@ 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()| new field `virt_lines_overflow` accepts value `scroll` to
- enable horizontal scrolling for virtual lines with 'nowrap'.
- right aligned text that truncates before covering up buffer text.
-• |nvim_buf_set_extmark()| `hl_group` field can be an array of layered groups.
+• Additions to |nvim_buf_set_extmark()|:
+ • `conceal_lines` field to conceal an entire line.
+ • `hl_group` field can be an array of layered groups.
+ • `virt_text_pos` field accepts value `eol_right_align` to allow for right
+ aligned text that truncates before covering up buffer text.
+ • `virt_lines_overflow` field accepts value `scroll` to enable horizontal
+ scrolling for virtual lines with 'nowrap'.
• |vim.hl.range()| now has a optional `timeout` field which allows for a timed highlight
-• |nvim_buf_set_extmark()| `virt_text_pos` field accepts value `eol_right_align` to
- allow for right aligned text that truncates before covering up buffer text.
DEFAULTS
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua
index a6ffb43146..94469a768c 100644
--- a/runtime/lua/vim/_meta/api.lua
+++ b/runtime/lua/vim/_meta/api.lua
@@ -685,6 +685,10 @@ function vim.api.nvim_buf_line_count(buffer) end
--- When a character is supplied it is used as `:syn-cchar`.
--- "hl_group" is used as highlight for the cchar if provided,
--- otherwise it defaults to `hl-Conceal`.
+--- - conceal_lines: string which should be empty. When
+--- provided, lines in the range are not drawn at all
+--- (according to 'conceallevel'); the next unconcealed line
+--- is drawn instead.
--- - spell: boolean indicating that spell checking should be
--- performed within this extmark
--- - ui_watched: boolean that indicates the mark should be drawn
diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua
index a66e373851..e574c4c1b3 100644
--- a/runtime/lua/vim/_meta/api_keysets.lua
+++ b/runtime/lua/vim/_meta/api_keysets.lua
@@ -266,6 +266,7 @@ error('Cannot require a meta file')
--- @field line_hl_group? integer|string
--- @field cursorline_hl_group? integer|string
--- @field conceal? string
+--- @field conceal_lines? string
--- @field spell? boolean
--- @field ui_watched? boolean
--- @field undo_restore? boolean