diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-07 19:15:23 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-01-21 19:39:11 +0100 |
| commit | 04db98668639cb0b431d50e5963f6b156d728078 (patch) | |
| tree | 4bec29af1c9c34852e974be06301f74de4802199 /.vim/autoload/daymode.vim | |
| parent | 9b8005439ac351ded8f6286aefa2378d25d7add5 (diff) | |
vim: big update; move lots of things to lua
Diffstat (limited to '.vim/autoload/daymode.vim')
| -rw-r--r-- | .vim/autoload/daymode.vim | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/.vim/autoload/daymode.vim b/.vim/autoload/daymode.vim index 40fb5a0..b2c8cdb 100644 --- a/.vim/autoload/daymode.vim +++ b/.vim/autoload/daymode.vim @@ -1,14 +1,13 @@ function! s:lightline_update(colors) - if !exists('g:loaded_lightline') - return + if exists('g:loaded_lightline') + try + let g:lightline.colorscheme = a:colors + call lightline#init() + call lightline#colorscheme() + call lightline#update() + catch + endtry endif - try - let g:lightline.colorscheme = a:colors - call lightline#init() - call lightline#colorscheme() - call lightline#update() - catch - endtry endfunction function! daymode#switch(bang) @@ -22,7 +21,7 @@ function! daymode#switch(bang) call s:lightline_update(get(g:, 'daymode_lightline_colorscheme_day', 'PaperColor')) endif - if exists("syntax_on") - syntax reset - endif + " if exists("syntax_on") + " syntax reset + " endif endfunction |