Skip to content

Commit b18b41d

Browse files
Bruce Wenvoldikss
authored andcommitted
master adapt to health api change in 0.11.0 - neovim/neovim@c08b030
1 parent b02d1f4 commit b18b41d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

autoload/health/floaterm.vim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h:h:h')
99

1010
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())
1515
endfunction
1616

1717
function! s:check_terminal() abort
18-
call health#report_start('terminal')
18+
call health#start('terminal')
1919
if exists(':terminal') > 0
20-
call health#report_ok('Terminal emulator is available')
20+
call health#ok('Terminal emulator is available')
2121
else
22-
call health#report_error(
22+
call health#error(
2323
\ 'Terminal emulator is missing',
2424
\ ['Install the latest version neovim']
2525
\ )
2626
endif
2727
endfunction
2828

2929
function! s:check_floating() abort
30-
call health#report_start('floating')
30+
call health#start('floating')
3131
if exists('*nvim_win_set_config')
32-
call health#report_ok('Floating window is available')
32+
call health#ok('Floating window is available')
3333
else
34-
call health#report_warn(
34+
call health#warn(
3535
\ 'Floating window is missing, will fallback to use normal window',
3636
\ ['Install the latest version neovim']
3737
\ )

0 commit comments

Comments
 (0)