mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(highlight): accept NONE as a color name (#17487)
... for when `ns=0`. Also update the documentation of nvim_set_hl to clarify the set behaviour. Fixes #17478
This commit is contained in:
@@ -124,6 +124,10 @@ Dictionary nvim__get_hl_defs(Integer ns_id, Error *err)
|
||||
|
||||
/// Set a highlight group.
|
||||
///
|
||||
/// Note: unlike the `:highlight` command which can update a highlight group,
|
||||
/// this function completely replaces the definition. For example:
|
||||
/// `nvim_set_hl(0, 'Visual', {})` will clear the highlight group 'Visual'.
|
||||
///
|
||||
/// @param ns_id number of namespace for this highlight. Use value 0
|
||||
/// to set a highlight group in the global (`:highlight`)
|
||||
/// namespace.
|
||||
|
Reference in New Issue
Block a user