mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add tokyonight colorscheme
This commit is contained in:
parent
fa28ef1b90
commit
cfebb79637
@ -91,6 +91,7 @@ Plug 'lifepillar/vim-solarized8'
|
||||
Plug 'joshdick/onedark.vim'
|
||||
Plug 'KeitaNakamura/neodark.vim'
|
||||
Plug 'sainnhe/edge'
|
||||
Plug 'ghifarit53/tokyonight-vim'
|
||||
Plug 'sainnhe/sonokai'
|
||||
|
||||
if !exists('g:started_by_firenvim')
|
||||
|
||||
10
core/ui.vim
10
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]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user