don't change statuslines for location, quickfix, nerd, tagbar windows
This commit is contained in:
parent
68442f74ac
commit
989e17d2f0
@ -51,20 +51,26 @@ let s:airline_highlight_map = {
|
|||||||
|
|
||||||
function! s:highlight(mode, keys)
|
function! s:highlight(mode, keys)
|
||||||
for key in a:keys
|
for key in a:keys
|
||||||
let colors = s:airline_colors_{a:mode}[key]
|
if exists('s:airline_colors_{a:mode}') && exists('s:airline_colors_{a:mode}[key]')
|
||||||
let cmd = printf('hi %s %s %s %s %s %s %s',
|
let colors = s:airline_colors_{a:mode}[key]
|
||||||
\ s:airline_highlight_map[key],
|
let cmd = printf('hi %s %s %s %s %s %s %s',
|
||||||
\ colors[0] != '' ? 'guifg='.colors[0] : '',
|
\ s:airline_highlight_map[key],
|
||||||
\ colors[1] != '' ? 'guibg='.colors[1] : '',
|
\ colors[0] != '' ? 'guifg='.colors[0] : '',
|
||||||
\ colors[2] != '' ? 'ctermfg='.colors[2] : '',
|
\ colors[1] != '' ? 'guibg='.colors[1] : '',
|
||||||
\ colors[3] != '' ? 'ctermbg='.colors[3] : '',
|
\ colors[2] != '' ? 'ctermfg='.colors[2] : '',
|
||||||
\ colors[4] != '' ? 'gui='.colors[4] : '',
|
\ colors[3] != '' ? 'ctermbg='.colors[3] : '',
|
||||||
\ colors[4] != '' ? 'term='.colors[4] : '')
|
\ colors[4] != '' ? 'gui='.colors[4] : '',
|
||||||
exec cmd
|
\ colors[4] != '' ? 'term='.colors[4] : '')
|
||||||
|
exec cmd
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:update_statusline(active)
|
function! s:update_statusline(active)
|
||||||
|
if &ft == 'qf' || matchstr(expand('%'), 'NERD') ==# 'NERD' || matchstr(expand('%'), 'Tagbar') ==# 'Tagbar'
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let l:mode_color = a:active ? "%2*" : "%9*"
|
let l:mode_color = a:active ? "%2*" : "%9*"
|
||||||
let l:mode_sep_color = a:active ? "%3*" : "%9*"
|
let l:mode_sep_color = a:active ? "%3*" : "%9*"
|
||||||
let l:info_color = a:active ? "%4*" : "%9*"
|
let l:info_color = a:active ? "%4*" : "%9*"
|
||||||
|
Loading…
Reference in New Issue
Block a user