mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 13:23:35 +08:00
3920817442
+ Check the value of airline_powerline_fonts not just existence
15 lines
460 B
VimL
15 lines
460 B
VimL
" MIT License. Copyright (c) 2013 Bailey Ling.
|
|
" vim: et ts=2 sts=2 sw=2
|
|
|
|
let s:symbol = get(g:, 'airline#extensions#paste#symbol',
|
|
\ get(g:, 'airline_paste_symbol', (get(g:, 'airline_powerline_fonts', 0) ? ' ' : '').'PASTE'))
|
|
|
|
function! airline#extensions#paste#get_mark()
|
|
return &paste ? ' ' . s:symbol : ''
|
|
endfunction
|
|
|
|
function! airline#extensions#paste#init()
|
|
let g:airline_section_a .= '%{airline#extensions#paste#get_mark()}'
|
|
endfunction
|
|
|