aboutsummaryrefslogtreecommitdiff
path: root/core/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-01-02 15:22:15 +0800
committerjdhao <jdhao@hotmail.com>2021-01-02 15:22:15 +0800
commit0cac1585dd2056533ff2738bd53fa11c21fda061 (patch)
tree05c53d6272e8997761d43c406c452ce22f1001fd /core/ui.vim
parent6a5620c2549dece9608a5989be5bf4bd615f20eb (diff)
Add colorscheme gruvbox-material
Diffstat (limited to 'core/ui.vim')
-rw-r--r--core/ui.vim12
1 files changed, 10 insertions, 2 deletions
diff --git a/core/ui.vim b/core/ui.vim
index fd018ea..cbbfdc9 100644
--- a/core/ui.vim
+++ b/core/ui.vim
@@ -77,14 +77,22 @@ function! s:my_theme_dict.tokyonight() dict abort
colorscheme tokyonight
endfunction
+function! s:my_theme_dict.gruvbox_material() dict abort
+ if !utils#HasColorscheme('gruvbox-material') | return | endif
+ let g:gruvbox_material_enable_italic = 1
+ let g:gruvbox_material_better_performance = 1
+ colorscheme gruvbox-material
+endfunction
+
let s:candidate_theme = ['gruvbox8', 'deus', 'solarized8', 'onedark', 'neodark',
- \ 'edge', 'sonokai', 'tokyonight']
+ \ 'edge', 'sonokai', 'tokyonight', 'gruvbox_material']
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
+ " execute 'call ' . s:colorscheme_func
+ call s:my_theme_dict.gruvbox_material()
else
echohl WarningMsg
echomsg 'Invalid colorscheme function: ' s:colorscheme_func