feat(api): add api.commands.get (#2083)

* feat(commands): add descriptions

* Update lua/nvim-tree.lua

Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>

* feat(commands): add descriptions, extract to commands.lua

* feat(commands): add descriptions, add api.get_commands

* feat(commands): add descriptions, api.get_commands -> api.commands.get

---------

Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
This commit is contained in:
Alexander Courtis
2023-03-28 10:52:48 +11:00
committed by GitHub
parent a38f9a55a4
commit 45400cd7e0
4 changed files with 163 additions and 41 deletions

View File

@@ -1503,7 +1503,7 @@ api.config.mappings.get_keymap()
Return: ~
(table) as per |nvim_buf_get_keymap()|
*nvim-tree.api.config.mappings.get_keymap_default()*
*nvim-tree.api.config.mappings.get_keymap_default()*
api.config.mappings.get_keymap_default()
Retrieves the buffer local mappings for nvim-tree that are applied by
|nvim-tree.api.config.mappings.default_on_attach()|
@@ -1511,6 +1511,15 @@ api.config.mappings.get_keymap_default()
Return: ~
(table) as per |nvim_buf_get_keymap()|
api.commands.get() *nvim-tree.api.commands.get()*
Retrieve all commands, see |nvim-tree-commands|
Return: ~
(table) array containing |nvim_create_user_command()| parameters:
• {name} (string)
• {command} (function)
• {opts} (table)
==============================================================================
6. MAPPINGS *nvim-tree-mappings*