mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
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:
parent
cda30f2740
commit
71390adcbe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue