nvimlsp: Use vim.lsp.buf_get_clients() for Neovim < 0.11
closes: #2676 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
c3d1d13b72
commit
6cc2c5c9e9
|
@ -15,7 +15,9 @@ function! s:airline_nvimlsp_count(cnt, symbol) abort
|
|||
endfunction
|
||||
|
||||
function! airline#extensions#nvimlsp#get(type) abort
|
||||
if luaeval('vim.tbl_isempty(vim.lsp.get_clients())')
|
||||
if has('nvim-0.11') && luaeval('vim.tbl_isempty(vim.lsp.get_clients())')
|
||||
return ''
|
||||
elseif luaeval('vim.tbl_isempty(vim.lsp.buf_get_clients())')
|
||||
return ''
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue