mirror of
https://github.com/neovim/neovim.git
synced 2025-12-01 06:23:01 +00:00
API: nvim_get_commands()
This commit is contained in:
committed by
Justin M. Keyes
parent
273d2cd5d5
commit
25b6304840
@@ -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).
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user