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

@@ -9,6 +9,7 @@ local Api = {
git = {},
live_filter = {},
config = { mappings = {} },
commands = {},
}
local function inject_node(f)
@@ -193,4 +194,8 @@ Api.config.mappings.get_keymap_default = function()
return require("nvim-tree.keymap").get_keymap_default()
end
Api.commands.get = function()
return require("nvim-tree.commands").get()
end
return Api