File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,29 @@ local hop = require'hop'
7
7
function M .check ()
8
8
local health = vim .health or require ' health'
9
9
10
- health .report_start (' Ensuring keys are unique' )
10
+ health .start (' Ensuring keys are unique' )
11
11
local existing_keys = {}
12
12
local had_errors = false
13
13
for i = 0 , # hop .opts .keys do
14
14
local key = hop .opts .keys :sub (i , i )
15
15
16
16
if existing_keys [key ] then
17
- health .report_error (string.format (' key %s appears more than once in opts.keys' , key ))
17
+ health .error (string.format (' key %s appears more than once in opts.keys' , key ))
18
18
had_errors = true
19
19
else
20
20
existing_keys [key ] = true
21
21
end
22
22
end
23
23
24
24
if not had_errors then
25
- health .report_ok (' Keys are unique' )
25
+ health .ok (' Keys are unique' )
26
26
end
27
27
28
- health .report_start (' Checking for deprecated features' )
28
+ health .start (' Checking for deprecated features' )
29
29
had_errors = false
30
30
31
31
if not had_errors then
32
- health .report_ok (' All good' )
32
+ health .ok (' All good' )
33
33
end
34
34
end
35
35
You can’t perform that action at this time.
0 commit comments