1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:30:04 +08:00
This commit is contained in:
wsdjeg 2017-05-27 22:09:20 +08:00
parent 46279afc43
commit d8df485980
2 changed files with 15 additions and 5 deletions

View File

@ -88,13 +88,23 @@ if g:spacevim_enable_neomake
endif
let counts = neomake#statusline#LoclistCounts()
let warnings = get(counts, 'W', 0)
let l = warnings ? '%#SpaceVim_statusline_warn#●' . warnings : ''
let counts = neomake#statusline#LoclistCounts()
let errors = get(counts, 'E', 0)
let l = warnings ? ' %#SpaceVim_statusline_warn#●' . warnings : ''
let l .= errors ? ' %#SpaceVim_statusline_error#●' . errors : ''
return l
return l . ' '
endfunction
else
function! s:syntax_checking()
if !exists(':SyntasticCheck')
return ''
endif
let l = SyntasticStatuslineFlag()
if strlen(l) > 0
return l
else
return ''
endif
endfunction
endif
function! s:winnr() abort