mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 05:22:12 +08:00
move syntastic implementation out of core
This commit is contained in:
parent
94895de8e2
commit
41a739d602
|
@ -83,10 +83,9 @@ function! s:get_statusline(winnr, active)
|
||||||
let sl.=l:info_sep_color
|
let sl.=l:info_sep_color
|
||||||
let sl.=g:airline_left_sep
|
let sl.=g:airline_left_sep
|
||||||
let sl.=l:status_color.s:get_section(a:winnr, 'c', ' %<')
|
let sl.=l:status_color.s:get_section(a:winnr, 'c', ' %<')
|
||||||
let gutter = s:getwinvar(a:winnr, 'airline_section_gutter', get(g:, 'airline_section_gutter', ''))
|
let sl.=l:file_flag_color." %{&ro ? g:airline_readonly_symbol : ''}".l:status_color
|
||||||
let sl.=gutter != ''
|
let sl.=s:get_section(a:winnr, 'gutter', '', '')
|
||||||
\ ? gutter
|
let sl.=l:status_color
|
||||||
\ : g:airline_externals_syntastic.l:file_flag_color."%{&ro ? g:airline_readonly_symbol : ''}".l:status_color
|
|
||||||
else
|
else
|
||||||
let sl.=l:status_color.' %f%m'
|
let sl.=l:status_color.' %f%m'
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -58,7 +58,7 @@ function! s:on_window_changed()
|
||||||
call s:check_defined('g:airline_section_a', '%{g:airline_current_mode_text}')
|
call s:check_defined('g:airline_section_a', '%{g:airline_current_mode_text}')
|
||||||
call s:check_defined('g:airline_section_b', '%{g:airline_externals_branch}')
|
call s:check_defined('g:airline_section_b', '%{g:airline_externals_branch}')
|
||||||
call s:check_defined('g:airline_section_c', g:airline_externals_bufferline)
|
call s:check_defined('g:airline_section_c', g:airline_externals_bufferline)
|
||||||
call s:check_defined('g:airline_section_gutter', '')
|
call s:check_defined('g:airline_section_gutter', g:airline_externals_syntastic)
|
||||||
call s:check_defined('g:airline_section_x', g:airline_externals_tagbar."%{strlen(&filetype)>0?&filetype:''}")
|
call s:check_defined('g:airline_section_x', g:airline_externals_tagbar."%{strlen(&filetype)>0?&filetype:''}")
|
||||||
call s:check_defined('g:airline_section_y', "%{strlen(&fenc)>0?&fenc:''}%{strlen(&ff)>0?'['.&ff.']':''}")
|
call s:check_defined('g:airline_section_y', "%{strlen(&fenc)>0?&fenc:''}%{strlen(&ff)>0?'['.&ff.']':''}")
|
||||||
call s:check_defined('g:airline_section_z', '%3p%% '.g:airline_linecolumn_prefix.'%3l:%3c')
|
call s:check_defined('g:airline_section_z', '%3p%% '.g:airline_linecolumn_prefix.'%3l:%3c')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user