Skip to content

Commit

Permalink
update lsp.vim
Browse files Browse the repository at this point in the history
Signed-off-by: tracyone <[email protected]>
  • Loading branch information
tracyone committed Dec 16, 2021
1 parent b76cd9a commit a1a9f9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoload/te/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
function! te#lsp#is_server_running() abort
if te#env#IsNvim() >= 0.5
return v:lua.require('utils').is_lsp_running()
else
if exists("*lsp#get_server_status")
let l:ret = 0
let l:serve_name = lsp#get_allowed_servers()
for l:needle in l:serve_name
let l:ret += !empty(lsp#get_server_status(l:needle))
endfor
return l:ret
endif
endif
return 0
endfunction
Expand Down

0 comments on commit a1a9f9d

Please sign in to comment.