mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-17 01:32:44 +08: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
|
||||
|
||||
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 ''
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user