avoid randombones config override

This commit is contained in:
Michael Chris Lopez
2021-11-08 16:34:35 +08:00
parent ace47a1eb2
commit 171ca1a6d2
5 changed files with 9 additions and 8 deletions

View File

@@ -7,9 +7,10 @@ else
let s:index = rand() % len(s:colorschemes)
endif
let g:randombones = s:colorschemes[s:index]
if exists('g:randombones.background')
call zenbones#setup_colorscheme(g:randombones.name, g:randombones.background)
let s:colorscheme = s:colorschemes[s:index]
let g:randombones_colors_name = s:colorschemes[s:index].name
if exists('s:colorscheme.background')
call zenbones#setup_colorscheme(g:randombones_colors_name, s:colorscheme.background)
else
call zenbones#setup_colorscheme(g:randombones.name)
call zenbones#setup_colorscheme(g:randombones_colors_name)
end