mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(spec): event, keys, ft and cmd can now also be a function that returns the values to be used
This commit is contained in:
parent
bcd87a0215
commit
2128ca90fb
6 changed files with 76 additions and 75 deletions
|
@ -346,7 +346,7 @@ function M.find(modname, opts)
|
|||
local updated = false
|
||||
---@type LazyCoreConfig
|
||||
local Config = package.loaded["lazy.core.config"]
|
||||
if Config then
|
||||
if Config and Config.spec then
|
||||
for _, plugin in pairs(Config.spec.plugins) do
|
||||
if not (M.indexed[plugin.dir] or plugin._.loaded or plugin.module == false) then
|
||||
updated = M._index(plugin.dir) or updated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue