mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
Fix #1266
This commit is contained in:
parent
c5e408f63d
commit
16a812f8df
@ -195,11 +195,18 @@ let g:spacevim_statusline_inactive_separator = 'arrow'
|
|||||||
" \ 'version control info'
|
" \ '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:
|
" 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']
|
let g:spacevim_statusline_right_sections = ['fileformat', 'cursorpos', 'percentage']
|
||||||
|
|
||||||
|
@ -33,12 +33,6 @@ let s:i_separators = {
|
|||||||
\ 'nil' : ['', ''],
|
\ 'nil' : ['', ''],
|
||||||
\ }
|
\ }
|
||||||
let s:loaded_modes = []
|
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 = {
|
let s:modes = {
|
||||||
\ 'center-cursor': {
|
\ 'center-cursor': {
|
||||||
\ 'icon' : '⊝',
|
\ '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: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'])
|
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
|
" build in sections for SpaceVim statusline
|
||||||
function! s:winnr(...) abort
|
function! s:winnr(...) abort
|
||||||
if a:0 > 1
|
if a:0 > 1
|
||||||
|
@ -227,7 +227,12 @@ Define the left section of statusline in active windows. By default:
|
|||||||
*g:spacevim_statusline_right_sections*
|
*g:spacevim_statusline_right_sections*
|
||||||
Define the right section of statusline in active windows. By default:
|
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*
|
*g:spacevim_statusline_unicode_symbols*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user