themes: prepare for vim9script implementation

This commit is contained in:
Christian 2020-11-18 19:10:56 +01:00 committed by Christian Brabandt
parent f08b7912c6
commit 0a80997100
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -3,6 +3,8 @@
scriptencoding utf-8
unlet! g:airline_experimental
if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0)==0)
" generates a dictionary which defines the colors for each highlight group
function! airline#themes#generate_color_map(sect1, sect2, sect3, ...)
let palette = {
@ -76,3 +78,6 @@ function! airline#themes#patch(palette)
let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ]
endif
endfunction
else
" New Vim9script implementation
endif