fix placement of readonly, add support for startify
This commit is contained in:
parent
41a739d602
commit
e446f6a2fb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue