mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update colorscheme
This commit is contained in:
parent
2b9a3992d8
commit
b54988e61a
@ -97,11 +97,12 @@ endif
|
||||
" A list of colorscheme plugin you may want to try. Find what suits you.
|
||||
Plug 'lifepillar/vim-gruvbox8'
|
||||
Plug 'srcery-colors/srcery-vim'
|
||||
Plug 'sjl/badwolf'
|
||||
Plug 'ajmwagar/vim-deus'
|
||||
Plug 'https://gitlab.com/yorickpeterse/happy_hacking.vim.git'
|
||||
Plug 'lifepillar/vim-solarized8'
|
||||
Plug 'patstockwell/vim-monokai-tasty'
|
||||
" Do not try other monokai-tasty and monokai-pro anymore, they
|
||||
" all have bad DiffDelete highlight issues.
|
||||
Plug 'sickill/vim-monokai'
|
||||
Plug 'rakr/vim-one'
|
||||
Plug 'kaicataldo/material.vim'
|
||||
Plug 'joshdick/onedark.vim'
|
||||
|
||||
27
ui.vim
27
ui.vim
@ -12,13 +12,7 @@ set background=dark
|
||||
"}}
|
||||
|
||||
"{{ Colorscheme settings
|
||||
let s:candidate_theme = ['gruvbox8', 'srcery', 'badwolf', 'deus', 'happy_hacking', 'solarized8',
|
||||
\ 'monokai_tasty', 'vim_one', 'material', 'onedark']
|
||||
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
|
||||
let s:theme = s:candidate_theme[s:idx]
|
||||
|
||||
let s:my_theme_dict = {}
|
||||
|
||||
function! s:my_theme_dict.srcery() dict abort
|
||||
colorscheme srcery
|
||||
endfunction
|
||||
@ -43,15 +37,6 @@ function! s:my_theme_dict.srcery() dict abort
|
||||
colorscheme srcery
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.badwolf() dict abort
|
||||
if !utils#HasColorscheme('badwolf') | return | endif
|
||||
|
||||
let g:badwolf_darkgutter = 0
|
||||
" Make the tab line lighter than the background.
|
||||
let g:badwolf_tabline = 2
|
||||
colorscheme badwolf
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.deus() dict abort
|
||||
if !utils#HasColorscheme('deus') | return | endif
|
||||
|
||||
@ -72,10 +57,9 @@ function! s:my_theme_dict.solarized8() dict abort
|
||||
colorscheme solarized8_high
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.monokai_tasty() dict abort
|
||||
if !utils#HasColorscheme('vim-monokai-tasty') | return | endif
|
||||
let g:vim_monokai_tasty_italic = 1
|
||||
colorscheme vim-monokai-tasty
|
||||
function! s:my_theme_dict.monokai() dict abort
|
||||
if !utils#HasColorscheme('monokai') | return | endif
|
||||
colorscheme monokai
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.vim_one() dict abort
|
||||
@ -107,6 +91,11 @@ function! s:my_theme_dict.neodark() dict abort
|
||||
colorscheme neodark
|
||||
endfunction
|
||||
|
||||
let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'happy_hacking', 'solarized8',
|
||||
\ 'monokai', 'vim_one', 'material', 'onedark']
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user