rm hooks
This commit is contained in:
15
lua/core/customPlugins.lua
Normal file
15
lua/core/customPlugins.lua
Normal 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
|
||||
Reference in New Issue
Block a user