diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-02 14:57:11 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-02 14:57:15 -0300 |
commit | 3d167c49d2048009fa12f57198bd05ca06ac72f2 (patch) | |
tree | a662a544bf596fe0fb9ccb71aa76df0c581e3c66 /src/nvim/api/vim.c | |
parent | 2eda611cbc9fc79b97d906f3810a2b5c0d928be6 (diff) | |
parent | f468fb70cb6d82dca5b9a23706b4b6b70a3beab6 (diff) | |
download | rneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.tar.gz rneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.tar.bz2 rneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.zip |
Merge PR #1883 'More work on highlight tests + update documentation'
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 45cc3c530b..b7b2f7630c 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -552,6 +552,18 @@ Integer vim_name_to_color(String name) return name_to_color((uint8_t *)name.data); } +Dictionary vim_get_color_map(void) +{ + Dictionary colors = ARRAY_DICT_INIT; + + for (int i = 0; color_name_table[i].name != NULL; i++) { + PUT(colors, color_name_table[i].name, + INTEGER_OBJ(color_name_table[i].color)); + } + return colors; +} + + Array vim_get_api_info(uint64_t channel_id) { Array rv = ARRAY_DICT_INIT; |