aboutsummaryrefslogtreecommitdiff
path: root/core/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-22 23:04:58 +0800
committerjdhao <jdhao@hotmail.com>2021-10-22 23:04:58 +0800
commit647cc833cc07131df636b7a6d8238798dad3f096 (patch)
tree093a191e4b9eec2f1a7cf44c91ebbb1f45c58bba /core/ui.vim
parent9a2e1b84751dd1a49ff6534814b8f89138a1dc24 (diff)
rename ui.vim --> themes.vim
Diffstat (limited to 'core/ui.vim')
-rw-r--r--core/ui.vim95
1 files changed, 0 insertions, 95 deletions
diff --git a/core/ui.vim b/core/ui.vim
deleted file mode 100644
index d1aa961..0000000
--- a/core/ui.vim
+++ /dev/null
@@ -1,95 +0,0 @@
-"{ UI-related settings
-"{{ Colorscheme settings
-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
- let g:gruvbox_italicize_strings=1
- let g:gruvbox_filetype_hi_groups = 1
- let g:gruvbox_plugin_hi_groups = 1
- colorscheme gruvbox8_hard
-endfunction
-
-function! s:my_theme_dict.solarized() dict abort
- packadd! nvim-solarized-lua
-
- " Load the colorsheme
- colorscheme solarized-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
- colorscheme doom-one
-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
-endfunction
-
-function! s:my_theme_dict.nightfox() dict abort
- packadd! nightfox.nvim
-
- colorscheme nordfox
-endfunction
-
-let s:candidate_theme = ['gruvbox8', 'solarized', 'onedark',
- \ 'edge', 'sonokai', 'gruvbox_material', 'nord', 'doom_one', 'everforest',
- \ 'nightfox']
-
-let s:theme = utils#RandElement(s:candidate_theme)
-let s:colorscheme_func = printf('s:my_theme_dict.%s()', s:theme)
-
-if has_key(s:my_theme_dict, s:theme)
- execute 'call ' . s:colorscheme_func
- let s:msg1 = "Currently loaded theme: " . s:theme
- call v:lua.vim.notify(s:msg1, 'info', {'title': 'nvim-config'})
-else
- let s:msg = "Invalid colorscheme function: " . s:colorscheme_func
- call v:lua.vim.notify(s:msg, 'error', {'title': 'nvim-config'})
-endif
-"}}
-"}