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:
Dionisio E Alonso 2024-05-19 12:40:51 -03:00 committed by GitHub
parent ff0f9a45a5
commit c3d1d13b72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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