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:
committed by
GitHub
parent
a38f9a55a4
commit
45400cd7e0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user