mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
Fix #565
This commit is contained in:
parent
46279afc43
commit
d8df485980
@ -88,13 +88,23 @@ if g:spacevim_enable_neomake
|
|||||||
endif
|
endif
|
||||||
let counts = neomake#statusline#LoclistCounts()
|
let counts = neomake#statusline#LoclistCounts()
|
||||||
let warnings = get(counts, 'W', 0)
|
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 errors = get(counts, 'E', 0)
|
||||||
|
let l = warnings ? ' %#SpaceVim_statusline_warn#●' . warnings : ''
|
||||||
let l .= errors ? ' %#SpaceVim_statusline_error#●' . errors : ''
|
let l .= errors ? ' %#SpaceVim_statusline_error#●' . errors : ''
|
||||||
return l
|
return l . ' '
|
||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
|
function! s:syntax_checking()
|
||||||
|
if !exists(':SyntasticCheck')
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
let l = SyntasticStatuslineFlag()
|
||||||
|
if strlen(l) > 0
|
||||||
|
return l
|
||||||
|
else
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! s:winnr() abort
|
function! s:winnr() abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user