Set nvim color scheme based on current time
This commit is contained in:
parent
603b4e0fa6
commit
879e900f5d
1 changed files with 9 additions and 3 deletions
|
|
@ -24,9 +24,15 @@ set splitbelow
|
||||||
|
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
|
||||||
" colorscheme
|
let current_time = strftime("%H")
|
||||||
set background=dark
|
|
||||||
colorscheme space_vim_theme
|
" colorscheme based on time
|
||||||
|
if current_time > 11 && current_time < 17
|
||||||
|
colorscheme xcodelight
|
||||||
|
else
|
||||||
|
set background=dark
|
||||||
|
colorscheme space_vim_theme
|
||||||
|
endif
|
||||||
|
|
||||||
" syntax on
|
" syntax on
|
||||||
syntax on
|
syntax on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue