mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 03:00:04 +08:00
Fix g:spacevim_windows_index_type
This commit is contained in:
parent
6ceea6e48f
commit
a6333fb3fc
@ -272,6 +272,7 @@ let g:spacevim_buffer_index_type = 0
|
||||
" " 0: 1 ➛ ➊
|
||||
" " 1: 1 ➛ ➀
|
||||
" " 2: 1 ➛ ⓵
|
||||
" " 3: 1 ➛ 1
|
||||
" let g:spacevim_windows_index_type = 1
|
||||
" <
|
||||
let g:spacevim_windows_index_type = 0
|
||||
|
@ -132,10 +132,18 @@ endif
|
||||
|
||||
function! s:winnr(...) abort
|
||||
if a:0 > 1
|
||||
if g:spacevim_windows_index_type == 3
|
||||
return ' ' . winnr() . ' '
|
||||
else
|
||||
return ' ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
|
||||
endif
|
||||
else
|
||||
if g:spacevim_windows_index_type == 3
|
||||
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . winnr() . ' '
|
||||
else
|
||||
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:filename() abort
|
||||
|
@ -303,6 +303,7 @@ Set SpaceVim windows index type, default is 0.
|
||||
" 0: 1 ➛ ➊
|
||||
" 1: 1 ➛ ➀
|
||||
" 2: 1 ➛ ⓵
|
||||
" 3: 1 ➛ 1
|
||||
let g:spacevim_windows_index_type = 1
|
||||
<
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user