File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
local M = {}
2
- local health = require (" health" )
2
+
3
+ local start = vim .health .start or vim .health .report_start
4
+ local ok = vim .health .ok or vim .health .report_ok
5
+ local error = vim .health .error or vim .health .report_error
3
6
4
7
-- TODO should check if the plugin is initialized and the setup is valid
5
8
-- TODO should check what method is being used for battery information
@@ -9,12 +12,12 @@ local function check_setup()
9
12
end
10
13
11
14
M .check = function ()
12
- health . report_start (" battery report" )
15
+ start (" battery report" )
13
16
-- make sure setup function parameters are ok
14
17
if check_setup () then
15
- health . report_ok (" Setup function is correct" )
18
+ ok (" Setup function is correct" )
16
19
else
17
- health . report_error (" Setup function is incorrect" )
20
+ error (" Setup function is incorrect" )
18
21
end
19
22
-- do some more checking
20
23
-- ...
You can’t perform that action at this time.
0 commit comments