mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-05 19:46:31 +00:00
docs(luacats): allow table of plugins in load
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user