mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-12-06 09:14:24 +08:00
convert the rest to use define section.
This commit is contained in:
@@ -83,11 +83,11 @@ function! s:init()
|
||||
call airline#util#define_section('a', ['mode', 'paste', 'iminsert'])
|
||||
call airline#util#define_section('b', ['hunks', 'branch'])
|
||||
call airline#util#define_section('c', ['%<', 'file'])
|
||||
call s:check_defined('g:airline_section_gutter', ' '.(g:airline_parts.readonly).'%=')
|
||||
call s:check_defined('g:airline_section_x', (g:airline_parts.tagbar).'%{&filetype}')
|
||||
call s:check_defined('g:airline_section_y', g:airline_parts.ffenc)
|
||||
call s:check_defined('g:airline_section_z', '%3p%% %{g:airline_symbols.linenr} %3l:%3c ')
|
||||
call s:check_defined('g:airline_section_warning', (g:airline_parts.syntastic).(g:airline_parts.whitespace))
|
||||
call airline#util#define_section('gutter', ['readonly', '%='])
|
||||
call airline#util#define_section('x', ['tagbar', '%{&filetype}'])
|
||||
call airline#util#define_section('y', ['ffenc'])
|
||||
call airline#util#define_section('z', ['%3p%% %{g:airline_symbols.linenr} %3l:%3c '])
|
||||
call airline#util#define_section('warning', ['syntastic', 'whitespace'])
|
||||
|
||||
let s:airline_theme_defined = exists('g:airline_theme')
|
||||
if s:airline_theme_defined || !airline#switch_matching_theme()
|
||||
|
||||
Reference in New Issue
Block a user