refactor(util): use available get_plugin() function

This commit is contained in:
dotfrag 2024-06-16 09:53:11 +03:00
parent f24999fd36
commit 315d574eb2

View file

@ -117,7 +117,7 @@ end
---@param name string ---@param name string
function M.opts(name) function M.opts(name)
local plugin = require("lazy.core.config").spec.plugins[name] local plugin = M.get_plugin(name)
if not plugin then if not plugin then
return {} return {}
end end