mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 13:04:44 +08:00
coc: Show line number for warnings and errors.
This commit is contained in:
@@ -38,7 +38,8 @@ function! airline#extensions#coc#get(type) abort
|
|||||||
if empty(cnt)
|
if empty(cnt)
|
||||||
return ''
|
return ''
|
||||||
else
|
else
|
||||||
return (is_err ? s:error_symbol : s:warning_symbol).cnt
|
let lnum = printf('(L%d)', (info.lnums)[0])
|
||||||
|
return (is_err ? s:error_symbol : s:warning_symbol).cnt.lnum
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user