committed by
GitHub
parent
6ad5c26f4d
commit
a8a4834e1a
@@ -15,9 +15,9 @@ local Api = {
|
|||||||
--- Do nothing when setup not called.
|
--- Do nothing when setup not called.
|
||||||
--- f function to invoke
|
--- f function to invoke
|
||||||
local function wrap(f)
|
local function wrap(f)
|
||||||
return function()
|
return function(...)
|
||||||
if vim.g.NvimTreeSetup == 1 then
|
if vim.g.NvimTreeSetup == 1 then
|
||||||
return f()
|
return f(...)
|
||||||
else
|
else
|
||||||
notify.error "nvim-tree setup not called"
|
notify.error "nvim-tree setup not called"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user