docs(luacats): allow table of plugins in load

This commit is contained in:
Marc Jakobi
2024-08-22 00:18:43 +02:00
parent 7f1527cf38
commit ed49bbeb3d
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ end
---@param cmd string
local function load(cmd)
vim.api.nvim_del_user_command(cmd)
loader.load(vim.tbl_values(pending[cmd]))
loader.load(pending[cmd])
end
---@param cmd string
+2 -2
View File
@@ -3,11 +3,11 @@ local loader = require("lz.n.loader")
---@class lz.n.ColorschemeHandler: lz.n.Handler
---@field augroup? integer
---@type table<string, table<string, lz.n.Plugin[]>>
local pending = {}
---@type lz.n.ColorschemeHandler
local M = {
---@type table<string, table<string, lz.n.Plugin[]>>
augroup = nil,
spec_field = "colorscheme",
}
@@ -32,7 +32,7 @@ local function on_colorscheme(name)
-- already loaded
return
end
loader.load(vim.tbl_values(plugins))
loader.load(plugins)
end
local function init()