mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
API: nvim_get_commands(): return Dictionary
This commit is contained in:
@@ -954,12 +954,12 @@ Dictionary nvim_get_mode(void)
|
||||
/// @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)
|
||||
FUNC_API_SINCE(3)
|
||||
{
|
||||
return keymap_array(mode, NULL);
|
||||
}
|
||||
|
||||
/// Gets a list of global (non-buffer-local) Ex commands.
|
||||
/// Gets a map of global (non-buffer-local) Ex commands.
|
||||
///
|
||||
/// Currently only |user-commands| are supported, not builtin Ex commands.
|
||||
///
|
||||
@@ -967,9 +967,9 @@ ArrayOf(Dictionary) nvim_get_keymap(String mode)
|
||||
/// {"builtin":false}
|
||||
/// @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)
|
||||
/// @returns Map of maps describing commands.
|
||||
Dictionary nvim_get_commands(Dictionary opts, Error *err)
|
||||
FUNC_API_SINCE(4)
|
||||
{
|
||||
return nvim_buf_get_commands(-1, opts, err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user