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

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