This commit is contained in:
siduck
2022-01-07 19:58:05 +05:30
parent 799432e99e
commit 4e54ee0081
6 changed files with 26 additions and 49 deletions

View File

@@ -0,0 +1,15 @@
local M = {}
local plugins = {}
M.add = function(fn)
table.insert(plugins, fn)
end
-- load custom plugins in packer startup function
M.run = function(args)
for _, hook in pairs(plugins) do
hook(args)
end
end
return M