nvimrc: Update deprecated LSP functions
This commit is contained in:
parent
b566a1e5f7
commit
488728cc61
6
nvimrc
6
nvimrc
|
@ -369,7 +369,7 @@ packadd! lightline.vim " https://github.com/itchyny/lightline.vim.git
|
|||
set laststatus=2
|
||||
|
||||
function! LightlineLSPErrorText()
|
||||
let l:count = luaeval("vim.lsp.diagnostic.get_count(0, [[Error]])")
|
||||
let l:count = luaeval("vim.diagnostic.get(0, [[Error]])")
|
||||
if l:count == 0
|
||||
return ''
|
||||
endif
|
||||
|
@ -377,7 +377,7 @@ function! LightlineLSPErrorText()
|
|||
endfunction
|
||||
|
||||
function! LightlineLSPWarningText()
|
||||
let l:count = luaeval("vim.lsp.diagnostic.get_count(0, [[Warning]])")
|
||||
let l:count = luaeval("vim.diagnostic.get(0, [[Warning]])")
|
||||
if l:count == 0
|
||||
return ''
|
||||
endif
|
||||
|
@ -385,7 +385,7 @@ function! LightlineLSPWarningText()
|
|||
endfunction
|
||||
|
||||
function! LightlineLSPInformationText()
|
||||
let l:count = luaeval("vim.lsp.diagnostic.get_count(0, [[Information]])")
|
||||
let l:count = luaeval("vim.diagnostic.get(0, [[Information]])")
|
||||
if l:count == 0
|
||||
return ''
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue