1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:40:05 +08:00

Fix startify statusline

This commit is contained in:
wsdjeg 2017-05-21 23:56:08 +08:00
parent 1207b43363
commit cef8394c84
2 changed files with 3 additions and 1 deletions

View File

@ -138,6 +138,8 @@ function! SpaceVim#layers#core#statusline#get(...) abort
elseif &filetype ==# 'tagbar'
return '%#SpaceVim_statusline_a# ' . s:winnr() . ' %#SpaceVim_statusline_a_b#'
\ . '%#SpaceVim_statusline_b# tagbar %#SpaceVim_statusline_b_c#'
elseif &filetype ==# 'startify'
call fugitive#detect(getcwd())
endif
if a:0 > 0
return s:active()

View File

@ -59,6 +59,6 @@ augroup END
if !exists('g:startify_custom_header')
call s:update_logo()
endif
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify', 'fancy start screen',1)
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify | doautocmd WinEnter', 'fancy start screen',1)
" vim:set et sw=2: