mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 12:50:05 +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
|
||||||
|
@ -81,9 +81,9 @@ function! SpaceVim#layers#core#tabline#get() abort
|
|||||||
let ct = bufnr('%')
|
let ct = bufnr('%')
|
||||||
let pt = index(s:buffers, ct) > 0 ? s:buffers[index(s:buffers, ct) - 1] : -1
|
let pt = index(s:buffers, ct) > 0 ? s:buffers[index(s:buffers, ct) - 1] : -1
|
||||||
if ct == get(s:buffers, 0, -1)
|
if ct == get(s:buffers, 0, -1)
|
||||||
let t = '%#SpaceVim_tabline_a# '
|
let t = '%#SpaceVim_tabline_a# '
|
||||||
else
|
else
|
||||||
let t = '%#SpaceVim_tabline_b# '
|
let t = '%#SpaceVim_tabline_b# '
|
||||||
endif
|
endif
|
||||||
for i in s:buffers
|
for i in s:buffers
|
||||||
if i == ct
|
if i == ct
|
||||||
|
Loading…
Reference in New Issue
Block a user