File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ M.check = function()
8
8
if global_opts ~= nil then
9
9
vim .health .ok (" debugprint has been setup" )
10
10
11
- local success , config = pcall (require , " lazy.core.config" )
11
+ local success_lazyconfig , module_lazyconfig =
12
+ pcall (require , " lazy.core.config" )
12
13
13
- if success then
14
- local plugin = config .spec .plugins [" debugprint.nvim" ]
14
+ if success_lazyconfig then
15
+ local plugin = module_lazyconfig .spec .plugins [" debugprint.nvim" ]
15
16
16
17
if
17
18
plugin
@@ -31,6 +32,19 @@ M.check = function()
31
32
end
32
33
end
33
34
35
+ local success_hipatterns , module_hipatterns =
36
+ pcall (require , " mini.hipatterns" )
37
+
38
+ if success_hipatterns and module_hipatterns then
39
+ vim .health .ok (
40
+ " mini.hipatterns is available and lines can be highlighted"
41
+ )
42
+ else
43
+ vim .health .warn (
44
+ " mini.hipatterns is not available; lines cannot be highlighted"
45
+ )
46
+ end
47
+
34
48
vim .health .info (" debugprint opts = " .. vim .inspect (global_opts ))
35
49
else
36
50
vim .health .warn (
You can’t perform that action at this time.
0 commit comments