mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-09 21:36:03 +00:00
fix: colorscheme handler broken for start plugins (#41)
This commit is contained in:
@@ -19,10 +19,12 @@ end
|
||||
|
||||
---@param name string
|
||||
local function on_colorscheme(name)
|
||||
if vim.tbl_contains(vim.fn.getcompletion("", "color"), name) then
|
||||
local pending = M.pending[name] or {}
|
||||
if vim.tbl_isempty(pending) then
|
||||
-- already loaded
|
||||
return
|
||||
end
|
||||
loader.load(vim.tbl_values(M.pending[name]))
|
||||
loader.load(vim.tbl_values(pending))
|
||||
end
|
||||
|
||||
local function init()
|
||||
|
||||
Reference in New Issue
Block a user