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:
parent
1207b43363
commit
cef8394c84
@ -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()
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user