Skip to content

Commit 03f0434

Browse files
authored
Merge pull request hadronized#362 from Grazfather/patch-1
health: Update from deprecated health api
2 parents 90db1b2 + 629224a commit 03f0434

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/hop/health.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ local hop = require'hop'
77
function M.check()
88
local health = vim.health or require'health'
99

10-
health.report_start('Ensuring keys are unique')
10+
health.start('Ensuring keys are unique')
1111
local existing_keys = {}
1212
local had_errors = false
1313
for i = 0, #hop.opts.keys do
1414
local key = hop.opts.keys:sub(i, i)
1515

1616
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))
1818
had_errors = true
1919
else
2020
existing_keys[key] = true
2121
end
2222
end
2323

2424
if not had_errors then
25-
health.report_ok('Keys are unique')
25+
health.ok('Keys are unique')
2626
end
2727

28-
health.report_start('Checking for deprecated features')
28+
health.start('Checking for deprecated features')
2929
had_errors = false
3030

3131
if not had_errors then
32-
health.report_ok('All good')
32+
health.ok('All good')
3333
end
3434
end
3535

0 commit comments

Comments
 (0)