1
0
Fork 0

Automate switching between day/night color schemes

This sets up individual light and dark color scheme files for vim/neovim
and alacritty, adds a script (`set-color`) for placing them, and
includes two no-arg scripts for later keybinding (`day-mode` and
`night-mode`).

Thanks to this blog post for the idea to `cat` the YAML into place:
https://shuheikagawa.com/blog/2020/02/14/switching-colorschemes-of-vim-and-alacritty/

TIL YAML is concatenative!
This commit is contained in:
Jeremy Kaplan 2021-04-13 17:04:18 -07:00
commit be5708c8c7
14 changed files with 165 additions and 60 deletions

View file

@ -59,9 +59,6 @@ set number
set hidden
set ruler
set t_Co=256
set background=dark
colorscheme jdkaplan
set expandtab
@ -326,3 +323,12 @@ smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
let g:gutentags_ctags_executable_rust = 'rusty-gutentags'
" CTRL-L usually clears and redraws the screen. Might as well use it to reset
" the colorscheme too!
fun s:ResetScreen()
colorscheme jdkaplan
redraw
endfun
command ResetScreen call s:ResetScreen()
nnoremap <C-l> :ResetScreen<CR>