From cfebb7963768606db9591091dfb7fd90edb79b3c Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 24 Dec 2020 22:38:06 +0800 Subject: Add tokyonight colorscheme --- core/ui.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/ui.vim') diff --git a/core/ui.vim b/core/ui.vim index ec9b5f4..350a7c1 100644 --- a/core/ui.vim +++ b/core/ui.vim @@ -69,8 +69,16 @@ function! s:my_theme_dict.sonokai() dict abort colorscheme sonokai endfunction +function! s:my_theme_dict.tokyonight() dict abort + if !utils#HasColorscheme('tokyonight') | return | endif + + let g:tokyonight_style = 'night' " available: night, storm + let g:tokyonight_enable_italic = 1 + colorscheme tokyonight +endfunction + let s:candidate_theme = ['gruvbox8', 'deus', 'solarized8', 'onedark', 'neodark', - \ 'edge', 'sonokai'] + \ 'edge', 'sonokai', 'tokyonight'] let s:idx = utils#RandInt(0, len(s:candidate_theme)-1) let s:theme = s:candidate_theme[s:idx] -- cgit v1.2.3