1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00
This commit is contained in:
wsdjeg 2018-01-18 20:34:43 +08:00
parent c5e408f63d
commit 16a812f8df
3 changed files with 24 additions and 9 deletions

View File

@ -195,11 +195,18 @@ let g:spacevim_statusline_inactive_separator = 'arrow'
" \ 'version control info'
" \ ]
" <
let g:spacevim_statusline_left_sections = ['winnr', 'filename', 'major mode', 'syntax checking', 'minor mode lighters', 'version control info', 'hunks']
let g:spacevim_statusline_left_sections = ['winnr', 'filename', 'major mode',
\ 'syntax checking', 'minor mode lighters',
\ 'version control info', 'hunks']
""
" Define the right section of statusline in active windows. By default:
" >
" let g:spacevim_statusline_right_sections = ['fileformat', 'cursorpos']
" g:spacevim_statusline_right_sections =
" \ [
" \ 'fileformat',
" \ 'cursorpos',
" \ 'percentage'
" \ ]
" <
let g:spacevim_statusline_right_sections = ['fileformat', 'cursorpos', 'percentage']

View File

@ -33,12 +33,6 @@ let s:i_separators = {
\ 'nil' : ['', ''],
\ }
let s:loaded_modes = []
if index(g:spacevim_plugin_groups, 'checkers') != -1
call add(s:loaded_modes, 'syntax-checking')
endif
if &cc ==# '80'
call add(s:loaded_modes, 'fill-column-indicator')
endif
let s:modes = {
\ 'center-cursor': {
\ 'icon' : '⊝',
@ -81,6 +75,15 @@ let s:loaded_sections_l = g:spacevim_statusline_left_sections
let [s:lsep , s:rsep] = get(s:separators, g:spacevim_statusline_separator, s:separators['arrow'])
let [s:ilsep , s:irsep] = get(s:i_separators, g:spacevim_statusline_inactive_separator, s:i_separators['arrow'])
if index(g:spacevim_plugin_groups, 'checkers') != -1
call add(s:loaded_modes, 'syntax-checking')
endif
if &cc ==# '80'
call add(s:loaded_modes, 'fill-column-indicator')
endif
if index(s:loaded_sections_r, 'whitespace')
call add(s:loaded_modes, 'whitespace')
endif
" build in sections for SpaceVim statusline
function! s:winnr(...) abort
if a:0 > 1

View File

@ -227,7 +227,12 @@ Define the left section of statusline in active windows. By default:
*g:spacevim_statusline_right_sections*
Define the right section of statusline in active windows. By default:
>
let g:spacevim_statusline_right_sections = ['fileformat', 'cursorpos']
g:spacevim_statusline_right_sections =
\ [
\ 'fileformat',
\ 'cursorpos',
\ 'percentage'
\ ]
<
*g:spacevim_statusline_unicode_symbols*