diff options
author | Nimit Bhardwaj <nimitbhardwaj@gmail.com> | 2018-02-24 15:44:51 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-11 13:20:19 +0200 |
commit | 25b630484023716977c3fe2790c13b41f9db9f30 (patch) | |
tree | c6cd3a539518418da64faab85754220b37ecd3c6 /src/nvim/api/vim.c | |
parent | 273d2cd5d5cfc7616c76d3531e9938750abcc05e (diff) | |
download | rneovim-25b630484023716977c3fe2790c13b41f9db9f30.tar.gz rneovim-25b630484023716977c3fe2790c13b41f9db9f30.tar.bz2 rneovim-25b630484023716977c3fe2790c13b41f9db9f30.zip |
API: nvim_get_commands()
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index df4912a51e..38e64fd6ed 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -959,6 +959,19 @@ ArrayOf(Dictionary) nvim_get_keymap(String mode) return keymap_array(mode, NULL); } +/// Gets a list of dictionaries describing global(non-buffer) commands. +/// +/// @param opts Holds the API Metadata describing what type of commands +/// are needed. +/// @param[out] err Error details, if any. +/// +/// @returns Array of dictionaries describing commands. +ArrayOf(Dictionary) nvim_get_commands(Dictionary opts, Error *err) + FUNC_API_SINCE(4) +{ + return commands_array(NULL); +} + /// Returns a 2-tuple (Array), where item 0 is the current channel id and item /// 1 is the |api-metadata| map (Dictionary). /// |