diff options
| author | jdhao <jdhao@hotmail.com> | 2020-12-20 00:18:57 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-12-20 00:18:57 +0800 |
| commit | 8be2d18ac029588b714605064c818f7c36a2e209 (patch) | |
| tree | ab2c0679737c823ca085aff686701bcab8d35dc9 /core | |
| parent | eb0c63c1758bc7257e278480c824d2a68af77974 (diff) | |
Add edge and sonokai colorscheme
Diffstat (limited to 'core')
| -rw-r--r-- | core/plugins.vim | 2 | ||||
| -rw-r--r-- | core/ui.vim | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index a4f81db..70bdcb0 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -93,6 +93,8 @@ Plug 'joshdick/onedark.vim' Plug 'KeitaNakamura/neodark.vim' Plug 'jsit/toast.vim' Plug 'humanoid-colors/vim-humanoid-colorscheme' +Plug 'sainnhe/edge' +Plug 'sainnhe/sonokai' if !exists('g:started_by_firenvim') " colorful status line and theme diff --git a/core/ui.vim b/core/ui.vim index 0e1dfe0..5bc7e8e 100644 --- a/core/ui.vim +++ b/core/ui.vim @@ -71,8 +71,24 @@ function! s:my_theme_dict.humanoid() dict abort colorscheme humanoid endfunction +function! s:my_theme_dict.edge() dict abort + if !utils#HasColorscheme('edge') | return | endif + + let g:edge_enable_italic = 1 + let g:edge_better_performance = 1 + colorscheme edge +endfunction + +function! s:my_theme_dict.sonokai() dict abort + if !utils#HasColorscheme('sonokai') | return | endif + + let g:sonokai_enable_italic = 1 + let g:sonokai_better_performance = 1 + colorscheme sonokai +endfunction + let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'solarized8', - \ 'onedark', 'neodark', 'toast', 'humanoid'] + \ 'onedark', 'neodark', 'toast', 'humanoid', 'edge', 'sonokai'] let s:idx = utils#RandInt(0, len(s:candidate_theme)-1) let s:theme = s:candidate_theme[s:idx] |
