This commit is contained in:
2026-04-13 21:48:04 +09:00
parent a31c84f9d7
commit 429b561ff4
3 changed files with 12 additions and 15 deletions

View File

@@ -2,12 +2,12 @@ local M = {}
local loaded = {}
function M.load_once(key, specs, setup)
function M.load_once(key, plugins, setup)
if loaded[key] then
return
end
loaded[key] = true
vim.pack.add(specs)
vim.pack.add(plugins)
if setup then
setup()
end