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]