diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-03-16 09:31:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 09:31:37 +0100 |
commit | 320cb344c14b30f8c1aa8c2d86803e4c2f971ae9 (patch) | |
tree | d3c0afe5c76a5e7c4e741c225e85d40b556ab924 /src/nvim/api/vim.c | |
parent | 5a38e951ec1532ba1ee8b35b42181003866d479c (diff) | |
download | rneovim-320cb344c14b30f8c1aa8c2d86803e4c2f971ae9.tar.gz rneovim-320cb344c14b30f8c1aa8c2d86803e4c2f971ae9.tar.bz2 rneovim-320cb344c14b30f8c1aa8c2d86803e4c2f971ae9.zip |
docs(api): link to nvim_set_hl_ns from nvim_set_hl (#22678)
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 315ccd13e6..a8cc7aa454 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -141,6 +141,8 @@ Dictionary nvim__get_hl_defs(Integer ns_id, Arena *arena, Error *err) /// /// @param ns_id Namespace id for this highlight |nvim_create_namespace()|. /// Use 0 to set a highlight group globally |:highlight|. +/// Highlights from non-global namespaces are not active by default, use +/// |nvim_set_hl_ns()| or |nvim_win_set_hl_ns()| to activate them. /// @param name Highlight group name, e.g. "ErrorMsg" /// @param val Highlight definition map, accepts the following keys: /// - fg (or foreground): color name or "#RRGGBB", see note. @@ -183,8 +185,8 @@ void nvim_set_hl(Integer ns_id, String name, Dict(highlight) *val, Error *err) } } -/// Set active namespace for highlights. This can be set for a single window, -/// see |nvim_win_set_hl_ns()|. +/// Set active namespace for highlights defined with |nvim_set_hl()|. This can be set for +/// a single window, see |nvim_win_set_hl_ns()|. /// /// @param ns_id the namespace to use /// @param[out] err Error details, if any @@ -200,7 +202,7 @@ void nvim_set_hl_ns(Integer ns_id, Error *err) redraw_all_later(UPD_NOT_VALID); } -/// Set active namespace for highlights while redrawing. +/// Set active namespace for highlights defined with |nvim_set_hl()| while redrawing. /// /// This function meant to be called while redrawing, primarily from /// |nvim_set_decoration_provider()| on_win and on_line callbacks, which |