deprecate airline_readonly_symbol. move into gutter by default, so it does not conflict with bufferline logic.
This commit is contained in:
parent
fad2c084e7
commit
e2a758e309
|
@ -1,11 +1,15 @@
|
||||||
" MIT License. Copyright (c) 2013 Bailey Ling.
|
" MIT License. Copyright (c) 2013 Bailey Ling.
|
||||||
" vim: et ts=2 sts=2 sw=2
|
" vim: et ts=2 sts=2 sw=2
|
||||||
|
|
||||||
|
let s:symbol = get(g:, 'airline#extensions#readonly#symbol',
|
||||||
|
\ get(g:, 'airline_readonly_symbol', exists('g:airline_powerline_fonts') ? '' : 'RO'))
|
||||||
|
|
||||||
function! airline#extensions#readonly#get_mark()
|
function! airline#extensions#readonly#get_mark()
|
||||||
return &ro ? g:airline_readonly_symbol : ''
|
return &ro ? s:symbol : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#readonly#init()
|
function! airline#extensions#readonly#init()
|
||||||
let g:airline_section_c .= '%{airline#extensions#readonly#get_mark()}'
|
let g:airline_section_gutter = '%{airline#extensions#readonly#get_mark()}'
|
||||||
|
\ .g:airline_section_gutter
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ separators, as well as the powerline font glyths.
|
||||||
let g:airline_right_sep = ''
|
let g:airline_right_sep = ''
|
||||||
let g:airline_right_alt_sep = ''
|
let g:airline_right_alt_sep = ''
|
||||||
let g:airline#extensions#branch#symbol = ' '
|
let g:airline#extensions#branch#symbol = ' '
|
||||||
let g:airline_readonly_symbol = ''
|
let g:airline#extensions#readonly#symbol = ''
|
||||||
let g:airline_linecolumn_prefix = ' '
|
let g:airline_linecolumn_prefix = ' '
|
||||||
|
|
||||||
" old vim-powerline symbols
|
" old vim-powerline symbols
|
||||||
|
@ -141,7 +141,7 @@ separators, as well as the powerline font glyths.
|
||||||
let g:airline_right_sep = '⮂'
|
let g:airline_right_sep = '⮂'
|
||||||
let g:airline_right_alt_sep = '⮃'
|
let g:airline_right_alt_sep = '⮃'
|
||||||
let g:airline#extensions#branch#symbol = '⭠'
|
let g:airline#extensions#branch#symbol = '⭠'
|
||||||
let g:airline_readonly_symbol = '⭤'
|
let g:airline#extensions#readonly#symbol = '⭤'
|
||||||
let g:airline_linecolumn_prefix = '⭡'
|
let g:airline_linecolumn_prefix = '⭡'
|
||||||
<
|
<
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ call s:check_defined('g:airline_right_alt_sep', exists('g:airline_powerline_font
|
||||||
call s:check_defined('g:airline_detect_iminsert', 0)
|
call s:check_defined('g:airline_detect_iminsert', 0)
|
||||||
call s:check_defined('g:airline_detect_modified', 1)
|
call s:check_defined('g:airline_detect_modified', 1)
|
||||||
call s:check_defined('g:airline_detect_paste', 1)
|
call s:check_defined('g:airline_detect_paste', 1)
|
||||||
call s:check_defined('g:airline_readonly_symbol', exists('g:airline_powerline_fonts')?'':'RO')
|
|
||||||
call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':')
|
call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':')
|
||||||
call s:check_defined('g:airline_paste_symbol', (exists('g:airline_powerline_fonts') ? ' ' : '').'PASTE')
|
call s:check_defined('g:airline_paste_symbol', (exists('g:airline_powerline_fonts') ? ' ' : '').'PASTE')
|
||||||
call s:check_defined('g:airline_inactive_collapse', 1)
|
call s:check_defined('g:airline_inactive_collapse', 1)
|
||||||
|
|
Loading…
Reference in New Issue