1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:50:03 +08:00

Fix denite statusline

This commit is contained in:
wsdjeg 2017-06-18 22:02:52 +08:00
parent df583f020c
commit ffb5acbdee

View File

@ -184,10 +184,10 @@ function! SpaceVim#layers#core#statusline#get(...) abort
return '%#SpaceVim_statusline_a#' . s:winnr() . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#'
\ . '%#SpaceVim_statusline_b# TabsManager %#SpaceVim_statusline_b_SpaceVim_statusline_c#'
elseif &filetype ==# 'denite'
return '%#SpaceVim_statusline_a#%{denite#get_status_mode()}%#SpaceVim_statusline_a_SpaceVim_statusline_b#'
\ . '%#SpaceVim_statusline_b#%{denite#get_status_sources()}%#SpaceVim_statusline_b_SpaceVim_statusline_z#'
return '%#SpaceVim_statusline_a# %{split(denite#get_status_mode())[1]} %#SpaceVim_statusline_a_SpaceVim_statusline_b# '
\ . '%#SpaceVim_statusline_b#%{denite#get_status_sources()} %#SpaceVim_statusline_b_SpaceVim_statusline_z# '
\ . '%#SpaceVim_statusline_z#%=%#SpaceVim_statusline_c_SpaceVim_statusline_z#'
\ . '%#SpaceVim_statusline_c#%{denite#get_status_path() . denite#get_status_linenr()}'
\ . '%#SpaceVim_statusline_c# %{denite#get_status_path() . denite#get_status_linenr()}'
endif
if a:0 > 0