diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-06-07 00:30:49 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-06-07 00:30:49 +0300 |
commit | 4df4d56437f705ec770c5768263f410ffd8d5a69 (patch) | |
tree | c4fe529a7425108ce512729aee77ea1ca4976663 /dotfiles/.config/nvim | |
parent | a4f25f1850bb92c85206ba8e4c61ec0121f5020f (diff) | |
download | vimrice-4df4d56437f705ec770c5768263f410ffd8d5a69.tar.gz vimrice-4df4d56437f705ec770c5768263f410ffd8d5a69.zip |
colors: change color scheme on SIGUSR1
Needed for a sway script that switches almost everything between light
and dark schemes.
I love dark themes, but my eyes sometimes want to look at something with
more light, especially on sunny days. Hence I need a way to easily
switch between dark and light.
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r-- | dotfiles/.config/nvim/init.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index 95d7a63..4d1b95c 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -70,6 +70,7 @@ call plug#end() set background=light endfunction map <F10> :call ChangeBG()<CR> + autocmd Signal SIGUSR1 call ChangeBG() let g:markdown_fenced_languages = ['c', 'go', 'sh', 'bash=sh', 'python', 'html', 'css', 'javascript'] " Set screen title |