mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-09-25 11:08:54 +02:00
themes: prepare for vim9script implementation
This commit is contained in:
parent
f08b7912c6
commit
0a80997100
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
scriptencoding utf-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
|
" generates a dictionary which defines the colors for each highlight group
|
||||||
function! airline#themes#generate_color_map(sect1, sect2, sect3, ...)
|
function! airline#themes#generate_color_map(sect1, sect2, sect3, ...)
|
||||||
let palette = {
|
let palette = {
|
||||||
@ -76,3 +78,6 @@ function! airline#themes#patch(palette)
|
|||||||
let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ]
|
let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ]
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
else
|
||||||
|
" New Vim9script implementation
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user