my-nvim-setup/lua/core/customPlugins.lua

16 lines
235 B
Lua
Raw Normal View History

2022-01-07 14:28:05 +00:00
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