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