diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-22 00:09:51 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-22 00:09:51 +0800 |
| commit | b54988e61abe5ab1c011049c8610392c258f4205 (patch) | |
| tree | 680334dec89f75d73f11f5700067011f73cfa98d /ui.vim | |
| parent | 2b9a3992d8c0dfa1ef1fb419bc4f57bf281f51ad (diff) | |
update colorscheme
Diffstat (limited to 'ui.vim')
| -rw-r--r-- | ui.vim | 27 |
1 files changed, 8 insertions, 19 deletions
@@ -12,13 +12,7 @@ set background=dark "}} "{{ Colorscheme settings -let s:candidate_theme = ['gruvbox8', 'srcery', 'badwolf', 'deus', 'happy_hacking', 'solarized8', - \ 'monokai_tasty', 'vim_one', 'material', 'onedark'] -let s:idx = utils#RandInt(0, len(s:candidate_theme)-1) -let s:theme = s:candidate_theme[s:idx] - let s:my_theme_dict = {} - function! s:my_theme_dict.srcery() dict abort colorscheme srcery endfunction @@ -43,15 +37,6 @@ function! s:my_theme_dict.srcery() dict abort colorscheme srcery endfunction -function! s:my_theme_dict.badwolf() dict abort - if !utils#HasColorscheme('badwolf') | return | endif - - let g:badwolf_darkgutter = 0 - " Make the tab line lighter than the background. - let g:badwolf_tabline = 2 - colorscheme badwolf -endfunction - function! s:my_theme_dict.deus() dict abort if !utils#HasColorscheme('deus') | return | endif @@ -72,10 +57,9 @@ function! s:my_theme_dict.solarized8() dict abort colorscheme solarized8_high endfunction -function! s:my_theme_dict.monokai_tasty() dict abort - if !utils#HasColorscheme('vim-monokai-tasty') | return | endif - let g:vim_monokai_tasty_italic = 1 - colorscheme vim-monokai-tasty +function! s:my_theme_dict.monokai() dict abort + if !utils#HasColorscheme('monokai') | return | endif + colorscheme monokai endfunction function! s:my_theme_dict.vim_one() dict abort @@ -107,6 +91,11 @@ function! s:my_theme_dict.neodark() dict abort colorscheme neodark endfunction +let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'happy_hacking', 'solarized8', + \ 'monokai', 'vim_one', 'material', 'onedark'] +let s:idx = utils#RandInt(0, len(s:candidate_theme)-1) +let s:theme = s:candidate_theme[s:idx] + let s:colorscheme_func = printf('s:my_theme_dict.%s()', s:theme) if has_key(s:my_theme_dict, s:theme) execute 'call ' . s:colorscheme_func |
