File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,18 @@ function M.lazy(key)
10
10
if type (package.loaded .lazy ) ~= ' table' then
11
11
return {}
12
12
end
13
- local ok , lazy_config = pcall (require , ' lazy.core.config' )
14
- if not ok then
13
+ local config_ok , lazy_config = pcall (require , ' lazy.core.config' )
14
+ local plugin_ok , lazy_plugin = pcall (require , ' lazy.core.plugin' )
15
+ if not config_ok or not plugin_ok then
15
16
return {}
16
17
end
17
18
local name = ' render-markdown.nvim'
18
19
local plugin = lazy_config .spec .plugins [name ]
19
20
if not plugin then
20
21
return {}
21
22
end
22
- local values = plugin [key ]
23
- if type (values ) == ' table' then
24
- return values
25
- elseif type (values ) == ' string' then
26
- return { values }
27
- else
28
- return {}
29
- end
23
+
24
+ return lazy_plugin .values (plugin , key , true )
30
25
end
31
26
32
27
--- @param file string | integer
You can’t perform that action at this time.
0 commit comments