refactor(util): use available get_plugin() function (#3687)

## What is this PR for?

Small refactor to use the already available `get_plugin()` function.

## Does this PR fix an existing issue?

No.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
dotfrag 2024-06-16 10:06:53 +03:00 committed by GitHub
parent cda30f2740
commit 71390adcbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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