highlighter: Cache syntax highlighting attributes

Should in theory improve performance by quiet a lot.
This commit is contained in:
Christian Brabandt
2017-08-11 11:26:35 +02:00
parent e9a7a12d9e
commit a96681d459
2 changed files with 22 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ endfunction
function! s:on_colorscheme_changed()
call s:init()
unlet! g:airline#highlighter#normal_fg_hi
call airline#highlighter#reset_hlcache()
let g:airline_gui_mode = airline#init#gui_mode()
if !s:theme_in_vimrc
call airline#switch_matching_theme()