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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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