aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-12-03 22:20:14 +0800
committerjdhao <jdhao@hotmail.com>2020-12-03 22:20:14 +0800
commit34de7711aaef776867624b9d0c2cb0c4881c6684 (patch)
tree7e77e5765da2409d32f8e95435d8ad39f0c81189
parentc8582e2ac158bfac7596cca24164ef59cfc76c1e (diff)
add humanoid color scheme
-rw-r--r--core/ui.vim10
1 files 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]