|
8 | 8 | let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h:h:h') |
9 | 9 |
|
10 | 10 | function! s:check_common() abort |
11 | | - call health#report_start('common') |
12 | | - call health#report_info('Platform: ' . s:get_platform_info()) |
13 | | - call health#report_info('Nvim: ' . s:get_nvim_info()) |
14 | | - call health#report_info('Plugin: ' . s:get_plugin_info()) |
| 11 | + call health#start('common') |
| 12 | + call health#info('Platform: ' . s:get_platform_info()) |
| 13 | + call health#info('Nvim: ' . s:get_nvim_info()) |
| 14 | + call health#info('Plugin: ' . s:get_plugin_info()) |
15 | 15 | endfunction |
16 | 16 |
|
17 | 17 | function! s:check_terminal() abort |
18 | | - call health#report_start('terminal') |
| 18 | + call health#start('terminal') |
19 | 19 | if exists(':terminal') > 0 |
20 | | - call health#report_ok('Terminal emulator is available') |
| 20 | + call health#ok('Terminal emulator is available') |
21 | 21 | else |
22 | | - call health#report_error( |
| 22 | + call health#error( |
23 | 23 | \ 'Terminal emulator is missing', |
24 | 24 | \ ['Install the latest version neovim'] |
25 | 25 | \ ) |
26 | 26 | endif |
27 | 27 | endfunction |
28 | 28 |
|
29 | 29 | function! s:check_floating() abort |
30 | | - call health#report_start('floating') |
| 30 | + call health#start('floating') |
31 | 31 | if exists('*nvim_win_set_config') |
32 | | - call health#report_ok('Floating window is available') |
| 32 | + call health#ok('Floating window is available') |
33 | 33 | else |
34 | | - call health#report_warn( |
| 34 | + call health#warn( |
35 | 35 | \ 'Floating window is missing, will fallback to use normal window', |
36 | 36 | \ ['Install the latest version neovim'] |
37 | 37 | \ ) |
|
0 commit comments