setup_colorscheme required 1st parameter
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
function! zenbones#setup_colorscheme(...) abort
|
function! zenbones#setup_colorscheme(colors_name, ...) abort
|
||||||
if exists('g:colors_name')
|
if exists('g:colors_name')
|
||||||
highlight clear
|
highlight clear
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:colors_name = a:1
|
let g:colors_name = a:colors_name
|
||||||
let l:bg = a:0 == 2 ? a:2 : v:null
|
let l:bg = a:0 == 1 ? a:1 : v:null
|
||||||
if l:bg != v:null
|
if l:bg != v:null
|
||||||
let &background = l:bg
|
let &background = l:bg
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user