From fdbba2ccf7d3dfe9c9ad7306df2bf305014ce6cd Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Mon, 29 Mar 2021 09:48:07 +0600 Subject: Api: Adding cterm color support to nvim_set_hl --- src/nvim/api/vim.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/api') diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 9dde62f0ee..c58240c1a3 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -217,6 +217,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 -- cgit From fd62d398353ef775fc8bc794cb88ee3090310400 Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Mon, 29 Mar 2021 13:52:28 +0600 Subject: Make clint happy about spaces. --- src/nvim/api/vim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/api') diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index c58240c1a3..d93be55ee8 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -221,7 +221,7 @@ Dictionary nvim__get_hl_defs(Integer ns_id, Error *err) /// `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 +/// Note: by default cterm attributes are /// same as attributes of gui color /// @param[out] err Error details, if any /// -- cgit