1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update toast colorscheme

This commit is contained in:
jdhao 2020-10-28 02:09:16 +08:00
parent 34d3fccb24
commit f0756d8e3d
2 changed files with 8 additions and 1 deletions

View File

@ -107,6 +107,7 @@ Plug 'rakr/vim-one'
Plug 'kaicataldo/material.vim'
Plug 'joshdick/onedark.vim'
Plug 'KeitaNakamura/neodark.vim'
Plug 'jsit/toast.vim'
if !exists('g:started_by_firenvim')
" colorful status line and theme

8
ui.vim
View File

@ -91,8 +91,14 @@ function! s:my_theme_dict.neodark() dict abort
colorscheme neodark
endfunction
function! s:my_theme_dict.toast() dict abort
if !utils#HasColorscheme('toast') | return | endif
colorscheme toast
endfunction
let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'happy_hacking', 'solarized8',
\ 'monokai', 'vim_one', 'material', 'onedark']
\ 'monokai', 'vim_one', 'material', 'onedark', 'toast']
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
let s:theme = s:candidate_theme[s:idx]