mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-22 19:54:51 +02:00
fix(util): use spec to check if a plugin is enabled
This commit is contained in:
parent
299aae3545
commit
bcff5a1937
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ end
|
|||
|
||||
---@param plugin string
|
||||
function M.has(plugin)
|
||||
return require("lazy.core.config").plugins[plugin] ~= nil
|
||||
return require("lazy.core.config").spec.plugins[plugin] ~= nil
|
||||
end
|
||||
|
||||
function M.fg(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue