coc: Show line number for warnings and errors.

This commit is contained in:
Utkarsh Verma 2021-02-28 13:00:17 +05:30
parent cb1bc19064
commit 32d28421fe
No known key found for this signature in database
GPG Key ID: 611291C16E1D6F95
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ function! airline#extensions#coc#get(type) abort
if empty(cnt)
return ''
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
endfunction