fix placement of readonly, add support for startify

This commit is contained in:
Bailey Ling 2013-08-03 15:46:25 +00:00
parent 41a739d602
commit e446f6a2fb
2 changed files with 4 additions and 2 deletions

View File

@ -82,8 +82,8 @@ function! s:get_statusline(winnr, active)
let sl.=s:get_section(a:winnr, 'b')
let sl.=l:info_sep_color
let sl.=g:airline_left_sep
let sl.=l:status_color.s:get_section(a:winnr, 'c', ' %<')
let sl.=l:file_flag_color." %{&ro ? g:airline_readonly_symbol : ''}".l:status_color
let sl.=l:status_color.'%<'.s:get_section(a:winnr, 'c')
let sl.=' '.l:file_flag_color."%(%{&ro ? g:airline_readonly_symbol : ''}%)".l:status_color
let sl.=s:get_section(a:winnr, 'gutter', '', '')
let sl.=l:status_color
else

View File

@ -66,6 +66,8 @@ function! airline#extensions#apply_window_overrides()
call airline#extensions#apply_left_override('vimfiler', '%{vimfiler#get_status_string()}')
elseif &ft == 'minibufexpl'
call airline#extensions#apply_left_override('MiniBufExplorer', '')
elseif &ft == 'startify'
call airline#extensions#apply_left_override('startify', '')
endif
endfunction