mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:40:04 +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'
|
elseif &filetype ==# 'tagbar'
|
||||||
return '%#SpaceVim_statusline_a# ' . s:winnr() . ' %#SpaceVim_statusline_a_b#'
|
return '%#SpaceVim_statusline_a# ' . s:winnr() . ' %#SpaceVim_statusline_a_b#'
|
||||||
\ . '%#SpaceVim_statusline_b# tagbar %#SpaceVim_statusline_b_c#'
|
\ . '%#SpaceVim_statusline_b# tagbar %#SpaceVim_statusline_b_c#'
|
||||||
|
elseif &filetype ==# 'startify'
|
||||||
|
call fugitive#detect(getcwd())
|
||||||
endif
|
endif
|
||||||
if a:0 > 0
|
if a:0 > 0
|
||||||
return s:active()
|
return s:active()
|
||||||
|
@ -59,6 +59,6 @@ augroup END
|
|||||||
if !exists('g:startify_custom_header')
|
if !exists('g:startify_custom_header')
|
||||||
call s:update_logo()
|
call s:update_logo()
|
||||||
endif
|
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:
|
" vim:set et sw=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user