aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-03 16:59:24 +0200
committerGitHub <noreply@github.com>2022-05-03 16:59:24 +0200
commit4df11463b288a227a7052b7fd9c0a3f737a51c1e (patch)
tree0b715c8dd093763d480cc62ae3873d7abf4b9047 /runtime
parent70e2c5d10d2574b77c56d0bebeb61527876ff0b1 (diff)
parent29a6cda3ffe981b09d4c59d49d6c97a4ea13ca8b (diff)
downloadrneovim-4df11463b288a227a7052b7fd9c0a3f737a51c1e.tar.gz
rneovim-4df11463b288a227a7052b7fd9c0a3f737a51c1e.tar.bz2
rneovim-4df11463b288a227a7052b7fd9c0a3f737a51c1e.zip
Merge pull request #15674 from yatli/ui_event_extmark
API/UI: ui_event_extmark
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt5
-rw-r--r--runtime/doc/ui.txt4
2 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index ed13d7f8c2..7fc94ff76b 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2706,6 +2706,11 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {*opts})
"hl_group" is used as highlight for the cchar
if provided, otherwise it defaults to
|hl-Conceal|.
+ • ui_watched: boolean that indicates the mark
+ should be drawn by a UI. When set, the UI will
+ receive win_extmark events. Note: the mark is
+ positioned by virt_text attributes. Can be
+ used together with virt_text.
Return: ~
Id of the created/updated extmark
diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt
index 8014199dc5..eb12fd38a0 100644
--- a/runtime/doc/ui.txt
+++ b/runtime/doc/ui.txt
@@ -627,6 +627,10 @@ tabs.
`botline` is set to one more than the line count of the buffer, if
there are filler lines past the end.
+["win_extmark", grid, win, ns_id, mark_id, row, col]
+ Updates the position of an extmark which is currently visible in a
+ window. Only emitted if the mark has the `ui_watched` attribute.
+
==============================================================================
Popupmenu Events *ui-popupmenu*