diff options
| author | Robert Günzler <r@gnzler.io> | 2021-02-20 21:27:26 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-04-26 02:09:43 +0200 |
| commit | 1996ef15613f2d4773017128bba1a719a1b63a19 (patch) | |
| tree | aa291b56947f0f710c96c62758990de3b2939bba /.vim/autoload/daymode.vim | |
| parent | 30451238df36d238fea816f01ca987853c6562a5 (diff) | |
Move to lua based vimrc
Diffstat (limited to '.vim/autoload/daymode.vim')
| -rw-r--r-- | .vim/autoload/daymode.vim | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/.vim/autoload/daymode.vim b/.vim/autoload/daymode.vim deleted file mode 100644 index b2c8cdb..0000000 --- a/.vim/autoload/daymode.vim +++ /dev/null @@ -1,27 +0,0 @@ -function! s:lightline_update(colors) - if exists('g:loaded_lightline') - try - let g:lightline.colorscheme = a:colors - call lightline#init() - call lightline#colorscheme() - call lightline#update() - catch - endtry - endif -endfunction - -function! daymode#switch(bang) - if a:bang - set background=dark - execute 'colorscheme' get(g:, 'daymode_colorscheme_night', 'default') - call s:lightline_update(get(g:, 'daymode_lightline_colorscheme_night', 'PaperColor')) - else - set background=light - execute 'colorscheme' get(g:, 'daymode_colorscheme_day', 'default') - call s:lightline_update(get(g:, 'daymode_lightline_colorscheme_day', 'PaperColor')) - endif - - " if exists("syntax_on") - " syntax reset - " endif -endfunction |