Merge pull request #2345 from UtkarshVerma/master

coc: Show line number for warnings and errors.
This commit is contained in:
Christian Brabandt 2021-03-02 10:20:12 +01:00 committed by GitHub
commit fc639c0cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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