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/buffer.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/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 878c8aad87..19f92f002d 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -459,14 +459,13 @@ Integer nvim_buf_get_changedtick(Buffer buffer, Error *err) return buf->b_changedtick; } -/// Gets a list of dictionaries describing buffer-local mappings. -/// The "buffer" key in the returned dictionary reflects the buffer -/// handle where the mapping is present. +/// Gets a list of buffer-local |mapping| definitions. /// /// @param mode Mode short-name ("n", "i", "v", ...) /// @param buffer Buffer handle /// @param[out] err Error details, if any -/// @returns Array of maparg()-like dictionaries describing mappings +/// @returns Array of maparg()-like dictionaries describing mappings. +/// The "buffer" key holds the associated buffer handle. ArrayOf(Dictionary) nvim_buf_get_keymap(Buffer buffer, String mode, Error *err) FUNC_API_SINCE(3) { @@ -479,7 +478,7 @@ ArrayOf(Dictionary) nvim_buf_get_keymap(Buffer buffer, String mode, Error *err) return keymap_array(mode, buf); } -/// Gets a list of maps describing buffer-local |user-commands|. +/// Gets a list of buffer-local |user-commands|. /// /// @param buffer Buffer handle. /// @param opts Optional parameters. Currently only supports |