1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add humanoid color scheme

This commit is contained in:
jdhao 2020-12-03 22:20:14 +08:00
parent c8582e2ac1
commit 34de7711aa

View File

@ -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]