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.
|
" A list of colorscheme plugin you may want to try. Find what suits you.
|
||||||
Plug 'lifepillar/vim-gruvbox8'
|
Plug 'lifepillar/vim-gruvbox8'
|
||||||
Plug 'srcery-colors/srcery-vim'
|
Plug 'srcery-colors/srcery-vim'
|
||||||
Plug 'sjl/badwolf'
|
|
||||||
Plug 'ajmwagar/vim-deus'
|
Plug 'ajmwagar/vim-deus'
|
||||||
Plug 'https://gitlab.com/yorickpeterse/happy_hacking.vim.git'
|
Plug 'https://gitlab.com/yorickpeterse/happy_hacking.vim.git'
|
||||||
Plug 'lifepillar/vim-solarized8'
|
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 'rakr/vim-one'
|
||||||
Plug 'kaicataldo/material.vim'
|
Plug 'kaicataldo/material.vim'
|
||||||
Plug 'joshdick/onedark.vim'
|
Plug 'joshdick/onedark.vim'
|
||||||
|
|||||||
27
ui.vim
27
ui.vim
@ -12,13 +12,7 @@ set background=dark
|
|||||||
"}}
|
"}}
|
||||||
|
|
||||||
"{{ Colorscheme settings
|
"{{ 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 = {}
|
let s:my_theme_dict = {}
|
||||||
|
|
||||||
function! s:my_theme_dict.srcery() dict abort
|
function! s:my_theme_dict.srcery() dict abort
|
||||||
colorscheme srcery
|
colorscheme srcery
|
||||||
endfunction
|
endfunction
|
||||||
@ -43,15 +37,6 @@ function! s:my_theme_dict.srcery() dict abort
|
|||||||
colorscheme srcery
|
colorscheme srcery
|
||||||
endfunction
|
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
|
function! s:my_theme_dict.deus() dict abort
|
||||||
if !utils#HasColorscheme('deus') | return | endif
|
if !utils#HasColorscheme('deus') | return | endif
|
||||||
|
|
||||||
@ -72,10 +57,9 @@ function! s:my_theme_dict.solarized8() dict abort
|
|||||||
colorscheme solarized8_high
|
colorscheme solarized8_high
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:my_theme_dict.monokai_tasty() dict abort
|
function! s:my_theme_dict.monokai() dict abort
|
||||||
if !utils#HasColorscheme('vim-monokai-tasty') | return | endif
|
if !utils#HasColorscheme('monokai') | return | endif
|
||||||
let g:vim_monokai_tasty_italic = 1
|
colorscheme monokai
|
||||||
colorscheme vim-monokai-tasty
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:my_theme_dict.vim_one() dict abort
|
function! s:my_theme_dict.vim_one() dict abort
|
||||||
@ -107,6 +91,11 @@ function! s:my_theme_dict.neodark() dict abort
|
|||||||
colorscheme neodark
|
colorscheme neodark
|
||||||
endfunction
|
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)
|
let s:colorscheme_func = printf('s:my_theme_dict.%s()', s:theme)
|
||||||
if has_key(s:my_theme_dict, s:theme)
|
if has_key(s:my_theme_dict, s:theme)
|
||||||
execute 'call ' . s:colorscheme_func
|
execute 'call ' . s:colorscheme_func
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user