From 34de7711aaef776867624b9d0c2cb0c4881c6684 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 3 Dec 2020 22:20:14 +0800 Subject: [PATCH] add humanoid color scheme --- core/ui.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/ui.vim b/core/ui.vim index e5fadac..ce028f6 100644 --- a/core/ui.vim +++ b/core/ui.vim @@ -84,8 +84,14 @@ function! s:my_theme_dict.sublimemonokai() dict abort colorscheme sublimemonokai endfunction -let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'solarized8', - \ 'material', 'onedark', 'neodark', 'toast', 'sublimemonokai'] +function! s:my_theme_dict.humanoid() dict abort + if !utils#HasColorscheme('humanoid') | return | endif + + colorscheme humanoid +endfunction + +let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'solarized8', 'material', + \ 'onedark', 'neodark', 'toast', 'sublimemonokai', 'humanoid'] let s:idx = utils#RandInt(0, len(s:candidate_theme)-1) let s:theme = s:candidate_theme[s:idx]