From 04db98668639cb0b431d50e5963f6b156d728078 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 7 Dec 2020 19:15:23 +0100 Subject: vim: big update; move lots of things to lua --- .vim/autoload/daymode.vim | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to '.vim/autoload/daymode.vim') 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 -- cgit 1.4.1