diff --git a/autoload/airline/extensions/coc.vim b/autoload/airline/extensions/coc.vim index a16ed1f0..a10f4f43 100644 --- a/autoload/airline/extensions/coc.vim +++ b/autoload/airline/extensions/coc.vim @@ -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