aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/api.txt
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-02-06 11:52:42 +0100
committeraltermo <107814000+altermo@users.noreply.github.com>2024-02-21 16:11:50 +0100
commit1c032ad703a19cd5c8498ee95f9352df87a91139 (patch)
tree9c2c79ae6dc17feb4c63687069cb1b9805fcc1bb /runtime/doc/api.txt
parent6d8bbfe19df2175637a1e47ac1aafb0e96e35b38 (diff)
downloadrneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.tar.gz
rneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.tar.bz2
rneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.zip
feat(extmark): window scoped extmark
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r--runtime/doc/api.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index c6e706d6c5..821d2eb748 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2791,6 +2791,8 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {*opts})
• url: A URL to associate with this extmark. In the TUI, the
OSC 8 control sequence is used to generate a clickable
hyperlink to this URL.
+ • scoped: boolean that indicates that the extmark should
+ only be displayed in the namespace scope. (experimental)
Return: ~
Id of the created/updated extmark
@@ -2865,6 +2867,35 @@ nvim_set_decoration_provider({ns_id}, {*opts})
winid, bufnr, row]
• on_end: called at the end of a redraw cycle ["end", tick]
+nvim_win_add_ns({window}, {ns_id}) *nvim_win_add_ns()*
+ Adds the namespace scope to the window.
+
+ Parameters: ~
+ • {window} Window handle, or 0 for current window
+ • {ns_id} the namespace to add
+
+ Return: ~
+ true if the namespace was added, else false
+
+nvim_win_get_ns({window}) *nvim_win_get_ns()*
+ Gets all the namespaces scopes associated with a window.
+
+ Parameters: ~
+ • {window} Window handle, or 0 for current window
+
+ Return: ~
+ a list of namespaces ids
+
+nvim_win_remove_ns({window}, {ns_id}) *nvim_win_remove_ns()*
+ Removes the namespace scope from the window.
+
+ Parameters: ~
+ • {window} Window handle, or 0 for current window
+ • {ns_id} the namespace to remove
+
+ Return: ~
+ true if the namespace was removed, else false
+
==============================================================================
Window Functions *api-window*