mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 21:33:41 +08:00
move paste indicator into the default section_a value.
This commit is contained in:
parent
39ae9c61ce
commit
c45e1bcf10
|
@ -115,7 +115,7 @@ function! airline#update_statusline(active)
|
||||||
|
|
||||||
let sl = l:mode_color
|
let sl = l:mode_color
|
||||||
if a:active
|
if a:active
|
||||||
let sl.='%{airline#update_highlight()} '.s:get_section('a').' %{&paste ? g:airline_paste_symbol." " : ""}'
|
let sl.='%{airline#update_highlight()} '.s:get_section('a').' '
|
||||||
let sl.=l:mode_sep_color
|
let sl.=l:mode_sep_color
|
||||||
let sl.=a:active ? g:airline_left_sep : g:airline_left_alt_sep
|
let sl.=a:active ? g:airline_left_sep : g:airline_left_alt_sep
|
||||||
let sl.=l:info_color
|
let sl.=l:info_color
|
||||||
|
|
|
@ -41,7 +41,7 @@ function! s:init()
|
||||||
call airline#extensions#load()
|
call airline#extensions#load()
|
||||||
call airline#update_externals()
|
call airline#update_externals()
|
||||||
call airline#load_theme(g:airline_theme)
|
call airline#load_theme(g:airline_theme)
|
||||||
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} %{&paste ? g:airline_paste_symbol." " : ""}')
|
||||||
call s:check_defined('g:airline_section_b', '%{g:airline_externals_fugitive}')
|
call s:check_defined('g:airline_section_b', '%{g:airline_externals_fugitive}')
|
||||||
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', '')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user