mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-16 00:37:08 +08:00
Fix vim9lsp ErrorCount method name change
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
if !exists('*lsp#errorCount')
|
||||
if !exists('*lsp#lsp#ErrorCount')
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -12,12 +12,12 @@ let s:error_symbol = get(g:, 'airline#extensions#vim9lsp#error_symbol', 'E:')
|
||||
let s:warning_symbol = get(g:, 'airline#extensions#vim9lsp#warning_symbol', 'W:')
|
||||
|
||||
function! airline#extensions#vim9lsp#get_warnings() abort
|
||||
let res = get(lsp#errorCount(), 'Warn', 0)
|
||||
let res = get(lsp#lsp#ErrorCount(), 'Warn', 0)
|
||||
return res > 0 ? s:warning_symbol . res : ''
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#vim9lsp#get_errors() abort
|
||||
let res = get(lsp#errorCount(), 'Error', 0)
|
||||
let res = get(lsp#lsp#ErrorCount(), 'Error', 0)
|
||||
return res > 0 ? s:error_symbol . res : ''
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user