mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Colorscheme plugins as opt plugins
This commit is contained in:
@@ -373,8 +373,7 @@ endif
|
||||
"""""""""""""""""""""""""""vim-airline setting""""""""""""""""""""""""""""""
|
||||
" Set airline theme to a random one if it exists
|
||||
let s:candidate_airlinetheme = ['ayu_mirage', 'lucius', 'ayu_dark', 'base16_bright',
|
||||
\ 'base16_adwaita', 'raven', 'term', 'gruvbox_material', 'deus', 'edge', 'onedark',
|
||||
\ 'sonokai']
|
||||
\ 'base16_adwaita', 'raven', 'term', 'deus', 'onedark']
|
||||
let s:idx = utils#RandInt(0, len(s:candidate_airlinetheme)-1)
|
||||
let s:theme = s:candidate_airlinetheme[s:idx]
|
||||
let g:airline_theme=s:theme
|
||||
|
||||
19
core/ui.vim
19
core/ui.vim
@@ -3,6 +3,8 @@
|
||||
let s:my_theme_dict = {}
|
||||
|
||||
function! s:my_theme_dict.gruvbox8() dict abort
|
||||
packadd! vim-gruvbox8
|
||||
|
||||
" Italic options should be put before colorscheme setting,
|
||||
" see https://github.com/morhetz/gruvbox/wiki/Terminal-specific#1-italics-is-disabled
|
||||
let g:gruvbox_italics=1
|
||||
@@ -13,42 +15,57 @@ function! s:my_theme_dict.gruvbox8() dict abort
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.deus() dict abort
|
||||
packadd! vim-deus
|
||||
|
||||
colorscheme deus
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.solarized8() dict abort
|
||||
packadd! vim-solarized8
|
||||
let g:solarized_term_italics=1
|
||||
let g:solarized_visibility='high'
|
||||
colorscheme solarized8_high
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.onedark() dict abort
|
||||
packadd! onedark.nvim
|
||||
|
||||
colorscheme onedark
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.edge() dict abort
|
||||
packadd! edge
|
||||
|
||||
let g:edge_enable_italic = 1
|
||||
let g:edge_better_performance = 1
|
||||
colorscheme edge
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.sonokai() dict abort
|
||||
packadd! sonokai
|
||||
|
||||
let g:sonokai_enable_italic = 1
|
||||
let g:sonokai_better_performance = 1
|
||||
colorscheme sonokai
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.gruvbox_material() dict abort
|
||||
packadd! gruvbox-material
|
||||
|
||||
let g:gruvbox_material_enable_italic = 1
|
||||
let g:gruvbox_material_better_performance = 1
|
||||
colorscheme gruvbox-material
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.nord() dict abort
|
||||
packadd! nord.nvim
|
||||
|
||||
colorscheme nord
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.doom_one() dict abort
|
||||
packadd! doom-one.nvim
|
||||
|
||||
let g:doom_one_terminal_color = v:true
|
||||
let g:doom_one_italic_comments = v:true
|
||||
let g:doom_one_cursor_coloring = v:true
|
||||
@@ -56,6 +73,8 @@ function! s:my_theme_dict.doom_one() dict abort
|
||||
endfunction
|
||||
|
||||
function! s:my_theme_dict.everforest() dict abort
|
||||
packadd! everforest
|
||||
|
||||
let g:everforest_enable_italic = 1
|
||||
let g:everforest_better_performance = 1
|
||||
colorscheme everforest
|
||||
|
||||
Reference in New Issue
Block a user