lazy.nvim/lua/lazy/core
Ross Williams a53c9163f5
fix(plugin): merge cond property of import specs
When a spec had an `import` property, the `cond` property was treated
the same as `enabled`; any specs to be imported were ignored and treated
as uninstalled if `cond` evaluated to false. This is inconsistent with
how `cond` behaves in a plugin spec without an `import` property.

To make the behavior consistent when using `import` to manage submodules
of plugin specs, merge the `cond` property of the "parent" spec(s)
containing an `import` property with any `cond` property found on the
imported "child" spec(s), including nested `import` specs. The parent
and child `cond` properties are evaluated and combined with boolean
`and`.

Signed-off-by: Ross Williams <ross@ross-williams.net>
2025-03-30 03:54:41 -04:00
..
handler style(types): add optional return value for LazyKeysSpec rhs (#1924) 2025-02-24 07:20:35 +01:00
cache.lua style: fix some typo (#1496) 2024-06-03 09:18:43 +02:00
config.lua chore(main): release 11.17.1 (#1927) 2025-02-25 20:19:57 +01:00
fragments.lua fix(fragments): check for empty plugin names 2024-06-25 00:31:34 +02:00
loader.lua feat(plugin): added support for virtual plugins. Closes #1836 2024-12-06 20:28:53 +01:00
meta.lua fix(meta): rebuild dirty right after disable. See #1889 2025-02-25 20:18:25 +01:00
plugin.lua fix(plugin): merge cond property of import specs 2025-03-30 03:54:41 -04:00
util.lua feat(util): pass lang to vim.notify so that snacks notifier can render the ft. Closes #1919 2025-02-15 08:19:49 +01:00