mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add edge and sonokai colorscheme
This commit is contained in:
parent
eb0c63c175
commit
8be2d18ac0
@ -93,6 +93,8 @@ Plug 'joshdick/onedark.vim'
|
|||||||
Plug 'KeitaNakamura/neodark.vim'
|
Plug 'KeitaNakamura/neodark.vim'
|
||||||
Plug 'jsit/toast.vim'
|
Plug 'jsit/toast.vim'
|
||||||
Plug 'humanoid-colors/vim-humanoid-colorscheme'
|
Plug 'humanoid-colors/vim-humanoid-colorscheme'
|
||||||
|
Plug 'sainnhe/edge'
|
||||||
|
Plug 'sainnhe/sonokai'
|
||||||
|
|
||||||
if !exists('g:started_by_firenvim')
|
if !exists('g:started_by_firenvim')
|
||||||
" colorful status line and theme
|
" colorful status line and theme
|
||||||
|
|||||||
18
core/ui.vim
18
core/ui.vim
@ -71,8 +71,24 @@ function! s:my_theme_dict.humanoid() dict abort
|
|||||||
colorscheme humanoid
|
colorscheme humanoid
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:my_theme_dict.edge() dict abort
|
||||||
|
if !utils#HasColorscheme('edge') | return | endif
|
||||||
|
|
||||||
|
let g:edge_enable_italic = 1
|
||||||
|
let g:edge_better_performance = 1
|
||||||
|
colorscheme edge
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:my_theme_dict.sonokai() dict abort
|
||||||
|
if !utils#HasColorscheme('sonokai') | return | endif
|
||||||
|
|
||||||
|
let g:sonokai_enable_italic = 1
|
||||||
|
let g:sonokai_better_performance = 1
|
||||||
|
colorscheme sonokai
|
||||||
|
endfunction
|
||||||
|
|
||||||
let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'solarized8',
|
let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'solarized8',
|
||||||
\ 'onedark', 'neodark', 'toast', 'humanoid']
|
\ 'onedark', 'neodark', 'toast', 'humanoid', 'edge', 'sonokai']
|
||||||
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
|
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
|
||||||
let s:theme = s:candidate_theme[s:idx]
|
let s:theme = s:candidate_theme[s:idx]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user