8
8
9
9
10
10
function ! health#lsp#check () abort
11
- call health#report_start (' server status' )
11
+ call v: lua . vim . health. start (' server status' )
12
12
let l: server_status = lsp#collect_server_status ()
13
13
14
14
let l: has_printed = v: false
@@ -17,21 +17,21 @@ function! health#lsp#check() abort
17
17
18
18
let l: status_msg = printf (' %s: %s' , l: k , l: report .status)
19
19
if l: report .status == ' running'
20
- call health#report_ok (l: status_msg )
20
+ call v: lua . vim . health. ok (l: status_msg )
21
21
elseif l: report .status == ' failed'
22
- call health#report_error (l: status_msg , ' See :help g:lsp_log_verbose to debug server failure.' )
22
+ call v: lua . vim . health. error (l: status_msg , ' See :help g:lsp_log_verbose to debug server failure.' )
23
23
else
24
- call health#report_warn (l: status_msg )
24
+ call v: lua . vim . health. warn (l: status_msg )
25
25
endif
26
26
let l: has_printed = v: true
27
27
endfor
28
28
29
29
if ! l: has_printed
30
- call health#report_warn (' no servers connected' )
30
+ call v: lua . vim . health. warn (' no servers connected' )
31
31
endif
32
32
33
33
for l: k in sort (keys (l: server_status ))
34
- call health#report_start (printf (' server configuration: %s' , l: k ))
34
+ call v: lua . vim . health. start (printf (' server configuration: %s' , l: k ))
35
35
let l: report = l: server_status [l: k ]
36
36
37
37
let l: msg = " \t \n "
@@ -51,14 +51,14 @@ function! health#lsp#check() abort
51
51
endif
52
52
let l: msg .= printf (" ### workspace_config\n ```json\n %s\n ```" , l: cfg )
53
53
endif
54
- call health#report_info (l: msg )
54
+ call v: lua . vim . health. info (l: msg )
55
55
endfor
56
56
57
- call health#report_start (' Performance' )
57
+ call v: lua . vim . health. start (' Performance' )
58
58
if lsp#utils#has_lua () && g: lsp_use_lua
59
- call health#report_ok (' Using lua for faster performance.' )
59
+ call v: lua . vim . health. ok (' Using lua for faster performance.' )
60
60
else
61
- call health#report_warn (' Missing requirements to enable lua for faster performance.' )
61
+ call v: lua . vim . health. warn (' Missing requirements to enable lua for faster performance.' )
62
62
endif
63
63
64
64
endf
0 commit comments