1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

Fix airline config

This commit is contained in:
wsdjeg 2017-01-01 23:20:25 +08:00
parent 3511e02efc
commit d8149ebfb5
2 changed files with 14 additions and 15 deletions

View File

@ -55,6 +55,9 @@ function! SpaceVim#init() abort
" < " <
" now Space Vim support these groups: " now Space Vim support these groups:
let g:spacevim_plugin_groups = [] let g:spacevim_plugin_groups = []
""
" enable/disable SpaceVim with powerline symbols.
let g:spacevim_enable_powerline_fonts = 1
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default'] let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default']
let g:spacevim_smartcloseignoreft = ['help'] let g:spacevim_smartcloseignoreft = ['help']
let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler'] let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']

View File

@ -1,5 +1,5 @@
scriptencoding utf-8 scriptencoding utf-8
let g:airline_powerline_fonts=1 let g:airline_powerline_fonts = g:spacevim_enable_powerline_fonts
let g:airline_skip_empty_sections = 1 let g:airline_skip_empty_sections = 1
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tmuxline#enabled = 1 let g:airline#extensions#tmuxline#enabled = 1
@ -27,30 +27,26 @@ if !exists('g:airline_symbols')
endif endif
" unicode symbols " unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶' let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀' let g:airline_right_sep = '◀'
let g:airline_symbols.crypt = '🔒' let g:airline_symbols.crypt = '🔒'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = '␤'
let g:airline_symbols.linenr = '¶' let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇' let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥' let g:airline_symbols.paste = '∥'
let g:airline_symbols.notexists = '∄' let g:airline_symbols.notexists = '∄'
let g:airline_symbols.whitespace = 'Ξ' let g:airline_symbols.whitespace = 'Ξ'
" powerline symbols " powerline symbols
let g:airline_left_sep = '' if get(g:, 'airline_powerline_fonts', 0)
let g:airline_left_alt_sep = '' let g:airline_left_sep = ''
let g:airline_right_sep = '' let g:airline_left_alt_sep = ''
let g:airline_right_alt_sep = '' let g:airline_right_sep = ''
let g:airline_symbols.branch = '' let g:airline_right_alt_sep = ''
let g:airline_symbols.readonly = '' let g:airline_symbols.branch = ''
let g:airline_symbols.linenr = '' let g:airline_symbols.readonly = ''
let g:airline_symbols.maxlinenr= '' let g:airline_symbols.linenr = ''
let g:airline_symbols.maxlinenr= ''
endif
augroup Fix_airline_with_unite augroup Fix_airline_with_unite