aboutsummaryrefslogtreecommitdiff
path: root/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-18 22:32:35 +0800
committerjdhao <jdhao@hotmail.com>2020-10-18 22:32:35 +0800
commit996e5452bfee8b55311580327852b89ee4349765 (patch)
treed30f60c034d9b237e0d14a3a209e8883c42a9913 /ui.vim
parent2b3ac645bcaf2f4c27728dce919a081d0d8528fd (diff)
add neodark theme
Diffstat (limited to 'ui.vim')
-rw-r--r--ui.vim19
1 files changed, 18 insertions, 1 deletions
diff --git a/ui.vim b/ui.vim
index 5a571a8..df45bb2 100644
--- a/ui.vim
+++ b/ui.vim
@@ -13,7 +13,7 @@ set background=dark
"{{ Colorscheme settings
let s:candidate_theme = ['gruvbox8', 'srcery', 'badwolf', 'deus', 'happy_hacking', 'solarized8',
- \ 'monokai', 'gotham', 'vim_one', 'material']
+ \ 'monokai', 'gotham', 'vim_one', 'material', 'onedark']
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
let s:theme = s:candidate_theme[s:idx]
@@ -111,6 +111,23 @@ function! s:my_theme_dict.material() dict abort
endif
endfunction
+function! s:my_theme_dict.onedark() dict abort
+ if utils#HasColorscheme('onedark')
+ let g:onedark_terminal_italics = 1
+ colorscheme onedark
+ else
+ colorscheme desert
+ endif
+endfunction
+
+function! s:my_theme_dict.neodark() dict abort
+ if utils#HasColorscheme('neodark')
+ colorscheme neodark
+ else
+ colorscheme desert
+ endif
+endfunction
+
execute printf('call s:my_theme_dict.%s()', s:theme)
""""""""""""""""""""""""""" deus settings"""""""""""""""""""""""""""""""""