diff options
author | Daniel Steinberg <dstein64@users.noreply.github.com> | 2023-07-18 17:02:45 -0400 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-10-01 10:02:36 +0200 |
commit | 2615ed879e66a3d05920c47177e77383adc7aca0 (patch) | |
tree | 3df20979c1d664dfd812144284eee5a61020dd40 /runtime/doc/api.txt | |
parent | be463e7643fb65c49a9a13bd5a1c6fb6ac34ae77 (diff) | |
download | rneovim-2615ed879e66a3d05920c47177e77383adc7aca0.tar.gz rneovim-2615ed879e66a3d05920c47177e77383adc7aca0.tar.bz2 rneovim-2615ed879e66a3d05920c47177e77383adc7aca0.zip |
feat(ui): allow to get the highlight namespace
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r-- | runtime/doc/api.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 1eebd0bb18..e3daf1defa 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. |