aboutsummaryrefslogtreecommitdiff
path: root/core/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-12-20 00:18:57 +0800
committerjdhao <jdhao@hotmail.com>2020-12-20 00:18:57 +0800
commit8be2d18ac029588b714605064c818f7c36a2e209 (patch)
treeab2c0679737c823ca085aff686701bcab8d35dc9 /core/ui.vim
parenteb0c63c1758bc7257e278480c824d2a68af77974 (diff)
Add edge and sonokai colorscheme
Diffstat (limited to 'core/ui.vim')
-rw-r--r--core/ui.vim18
1 files changed, 17 insertions, 1 deletions
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]