mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 21:40:37 +00:00
15 lines
235 B
Lua
15 lines
235 B
Lua
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
|