mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00: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
|
---@param plugin string
|
||||||
function M.has(plugin)
|
function M.has(plugin)
|
||||||
return require("lazy.core.config").plugins[plugin] ~= nil
|
return require("lazy.core.config").spec.plugins[plugin] ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.fg(name)
|
function M.fg(name)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue