@@ -249,14 +249,14 @@ function! lsp#ui#vim#document_format() abort
249
249
endfunction
250
250
251
251
function ! lsp#ui#vim#stop_server (... ) abort
252
- let l: name = get (a: 000 , 0 , ' ' )
253
- for l: server in lsp#get_whitelisted_servers ()
254
- if ! empty (l: name ) && l: server != l: name
255
- continue
256
- endif
257
- echo ' Stopping' l: server ' server ...'
258
- call lsp#stop_server (server)
259
- endfor
252
+ let l: name = get (a: 000 , 0 , ' ' )
253
+ for l: server in lsp#get_whitelisted_servers ()
254
+ if ! empty (l: name ) && l: server != l: name
255
+ continue
256
+ endif
257
+ echo ' Stopping' l: server ' server ...'
258
+ call lsp#stop_server (l: server )
259
+ endfor
260
260
endfunction
261
261
262
262
function ! s: get_selection_pos (type ) abort
@@ -439,15 +439,15 @@ function! s:handle_location(ctx, server, type, data) abort "ctx = {counter, list
439
439
if has_key (l: loc ,' viewstart' ) " showing a locationLink
440
440
let l: view = l: lines [l: loc [' viewstart' ] : l: loc [' viewend' ]]
441
441
call lsp#ui#vim#output#preview (a: server , l: view , {
442
- \ ' statusline' : ' LSP Peek ' . a: type ,
443
- \ ' filetype' : &filetype
444
- \ })
442
+ \ ' statusline' : ' LSP Peek ' . a: type ,
443
+ \ ' filetype' : &filetype
444
+ \ })
445
445
else " showing a location
446
446
call lsp#ui#vim#output#preview (a: server , l: lines , {
447
- \ ' statusline' : ' LSP Peek ' . a: type ,
448
- \ ' cursor' : { ' line' : l: loc [' lnum' ], ' col' : l: loc [' col' ], ' align' : g: lsp_peek_alignment },
449
- \ ' filetype' : &filetype
450
- \ })
447
+ \ ' statusline' : ' LSP Peek ' . a: type ,
448
+ \ ' cursor' : { ' line' : l: loc [' lnum' ], ' col' : l: loc [' col' ], ' align' : g: lsp_peek_alignment },
449
+ \ ' filetype' : &filetype
450
+ \ })
451
451
endif
452
452
endif
453
453
endif
@@ -582,9 +582,9 @@ function! s:get_treeitem_for_tree_hierarchy(Callback, object) dict abort
582
582
endfunction
583
583
584
584
function ! lsp#ui#vim#code_action () abort
585
- call lsp#ui#vim#code_action#do ({
586
- \ ' sync' : v: false ,
587
- \ ' selection' : v: false ,
588
- \ ' query' : ' ' ,
589
- \ })
585
+ call lsp#ui#vim#code_action#do ({
586
+ \ ' sync' : v: false ,
587
+ \ ' selection' : v: false ,
588
+ \ ' query' : ' ' ,
589
+ \ })
590
590
endfunction
0 commit comments