aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-10-01 10:39:31 +0200
committerGitHub <noreply@github.com>2023-10-01 10:39:31 +0200
commit9b3045103f7d56e5ccd0574dcb93e953b72d5f50 (patch)
tree303dfcb93ac93664838e7c0d362a88aaf8b6b34f /runtime/doc
parent2da66f1f710523548ca0746d5f7ef945de6d8f6a (diff)
parent2615ed879e66a3d05920c47177e77383adc7aca0 (diff)
downloadrneovim-9b3045103f7d56e5ccd0574dcb93e953b72d5f50.tar.gz
rneovim-9b3045103f7d56e5ccd0574dcb93e953b72d5f50.tar.bz2
rneovim-9b3045103f7d56e5ccd0574dcb93e953b72d5f50.zip
Merge pull request #25455 from bfredl/highlight_namespace_getters
feat(ui): allow to get the highlight namespace. closes #24390
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/api.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index ec979e2ab1..d64020191d 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -979,6 +979,19 @@ nvim_get_hl_id_by_name({name}) *nvim_get_hl_id_by_name()*
similar to |hlID()|, but allocates a new ID if not present.
+nvim_get_hl_ns({*opts}) *nvim_get_hl_ns()*
+ Gets the active highlight namespace.
+
+ Parameters: ~
+ • {opts} Optional parameters
+ • winid: (number) |window-ID| for retrieving a window's
+ highlight namespace. A value of -1 is returned when
+ |nvim_win_set_hl_ns()| has not been called for the window
+ (or was called with a namespace of -1).
+
+ Return: ~
+ Namespace id, or -1
+
nvim_get_keymap({mode}) *nvim_get_keymap()*
Gets a list of global (non-buffer-local) |mapping| definitions.