mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
parent
2f5c1be525
commit
aed842ae1e
5 changed files with 12 additions and 1 deletions
|
@ -121,6 +121,11 @@ function M.load(plugins, reason)
|
|||
end
|
||||
end
|
||||
|
||||
if try_load and plugin.cond then
|
||||
try_load = plugin.cond == true or (type(plugin.cond) == "function" and plugin.cond()) or false
|
||||
plugin._.cond = try_load
|
||||
end
|
||||
|
||||
---@cast plugin LazyPlugin
|
||||
|
||||
if try_load and not plugin._.loaded then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue