mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-27 07:54:44 +02:00
lsp: Correct deprecation warning on nvimlsp plugin (#2675)
As of version 0.12 of Neovim, the replaced API call is being deprecated. From 0.11.0 there is already a “deprecation warning” in place. This patch corrects that by using the new API call.
This commit is contained in:
parent
ff0f9a45a5
commit
c3d1d13b72
@ -15,7 +15,7 @@ function! s:airline_nvimlsp_count(cnt, symbol) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#nvimlsp#get(type) abort
|
function! airline#extensions#nvimlsp#get(type) abort
|
||||||
if luaeval('vim.tbl_isempty(vim.lsp.buf_get_clients(0))')
|
if luaeval('vim.tbl_isempty(vim.lsp.get_clients())')
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user