mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
refactor diagnostics count to using diagnostics state (#999)
This commit is contained in:
@@ -1120,7 +1120,7 @@ endfunction
|
||||
" Return dict with diagnostic counts for current buffer
|
||||
" { 'error': 1, 'warning': 0, 'information': 0, 'hint': 0 }
|
||||
function! lsp#get_buffer_diagnostics_counts() abort
|
||||
return lsp#ui#vim#diagnostics#get_buffer_diagnostics_counts()
|
||||
return lsp#internal#diagnostics#state#_get_diagnostics_count_for_buffer(bufnr('%'))
|
||||
endfunction
|
||||
|
||||
" Return first error line or v:null if there are no errors
|
||||
|
||||
Reference in New Issue
Block a user