mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
add neodark theme
This commit is contained in:
parent
2b3ac645bc
commit
996e5452bf
@ -106,6 +106,7 @@ Plug 'whatyouhide/vim-gotham'
|
||||
Plug 'rakr/vim-one'
|
||||
Plug 'kaicataldo/material.vim'
|
||||
Plug 'joshdick/onedark.vim'
|
||||
Plug 'KeitaNakamura/neodark.vim'
|
||||
|
||||
if !exists('g:started_by_firenvim')
|
||||
" colorful status line and theme
|
||||
|
||||
19
ui.vim
19
ui.vim
@ -13,7 +13,7 @@ set background=dark
|
||||
|
||||
"{{ Colorscheme settings
|
||||
let s:candidate_theme = ['gruvbox8', 'srcery', 'badwolf', 'deus', 'happy_hacking', 'solarized8',
|
||||
\ 'monokai', 'gotham', 'vim_one', 'material']
|
||||
\ 'monokai', 'gotham', 'vim_one', 'material', 'onedark']
|
||||
let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
|
||||
let s:theme = s:candidate_theme[s:idx]
|
||||
|
||||
@ -111,6 +111,23 @@ function! s:my_theme_dict.material() dict abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.onedark() dict abort
|
||||
if utils#HasColorscheme('onedark')
|
||||
let g:onedark_terminal_italics = 1
|
||||
colorscheme onedark
|
||||
else
|
||||
colorscheme desert
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.neodark() dict abort
|
||||
if utils#HasColorscheme('neodark')
|
||||
colorscheme neodark
|
||||
else
|
||||
colorscheme desert
|
||||
endif
|
||||
endfunction
|
||||
|
||||
execute printf('call s:my_theme_dict.%s()', s:theme)
|
||||
|
||||
""""""""""""""""""""""""""" deus settings"""""""""""""""""""""""""""""""""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user