diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-11 07:50:00 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-11 13:50:00 +0200 |
commit | 738bffea2cbb810ad1d3a3aa5bfeb88392260a8a (patch) | |
tree | 1cf06c01744acf33df2c1db67398c897a5af962b /src/nvim/api/vim.c | |
parent | 9fa7727ce047e8e2e13f9fbf60d5defe9cf45060 (diff) | |
download | rneovim-738bffea2cbb810ad1d3a3aa5bfeb88392260a8a.tar.gz rneovim-738bffea2cbb810ad1d3a3aa5bfeb88392260a8a.tar.bz2 rneovim-738bffea2cbb810ad1d3a3aa5bfeb88392260a8a.zip |
API: nvim_get_commands(): more attributes
Support more :command attributes:
-bang
-bar
-register
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 065b8d1ce2..305cc1a43c 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -948,18 +948,20 @@ Dictionary nvim_get_mode(void) return rv; } -/// Gets a list of dictionaries describing global (non-buffer) mappings. -/// The "buffer" key in the returned dictionary is always zero. +/// Gets a list of global (non-buffer-local) |mapping| definitions. /// /// @param mode Mode short-name ("n", "i", "v", ...) -/// @returns Array of maparg()-like dictionaries describing mappings +/// @returns Array of maparg()-like dictionaries describing mappings. +/// The "buffer" key is always zero. ArrayOf(Dictionary) nvim_get_keymap(String mode) FUNC_API_SINCE(3) { return keymap_array(mode, NULL); } -/// Gets a list of maps describing global |user-commands|. +/// Gets a list of global (non-buffer-local) Ex commands. +/// +/// Currently only |user-commands| are supported, not builtin Ex commands. /// /// @param opts Optional parameters. Currently only supports /// {"builtin":false} |