fix(#2139): API functions not passing arguments (#2141)

This commit is contained in:
John Fred Fadrigalan
2023-04-16 07:27:11 +08:00
committed by GitHub
parent 6ad5c26f4d
commit a8a4834e1a

View File

@@ -15,9 +15,9 @@ local Api = {
--- Do nothing when setup not called.
--- f function to invoke
local function wrap(f)
return function()
return function(...)
if vim.g.NvimTreeSetup == 1 then
return f()
return f(...)
else
notify.error "nvim-tree setup not called"
end