mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 04:30:04 +08:00
Fix #565
This commit is contained in:
parent
46279afc43
commit
d8df485980
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user