Merge pull request #14243 from shadmansaleh/Allow_cterm_colors_nvim_set_hl

API: Adding cterm support to nvim_set_hl
This commit is contained in:
Björn Linse
2021-05-11 15:07:00 +02:00
committed by GitHub
3 changed files with 136 additions and 3 deletions

View File

@@ -221,6 +221,12 @@ Dictionary nvim__get_hl_defs(Integer ns_id, Error *err)
/// in addition the following keys are also recognized:
/// `default`: don't override existing definition,
/// like `hi default`
/// `ctermfg`: sets foreground of cterm color
/// `ctermbg`: sets background of cterm color
/// `cterm` : cterm attribute map. sets attributed for
/// cterm colors. similer to `hi cterm`
/// Note: by default cterm attributes are
/// same as attributes of gui color
/// @param[out] err Error details, if any
///
/// TODO: ns_id = 0, should modify :highlight namespace