From 39907646062f6559925022fb8a58cb92502fbbe9 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Tue, 26 Jul 2022 16:27:09 -0400 Subject: [PATCH 1/2] fix colortheme is null when in installation process --- .vimrc.bundles | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index ebc0875..71be069 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -198,11 +198,11 @@ endif " what to use for dark theme - let g:dark_theme = '' + let g:dark_theme = 'default' let g:airline_dark_theme = "deus" " what to use for light theme - let g:light_theme = '' + let g:light_theme = 'default' let g:airline_light_theme = "silver" " transparent backgroud for supported terminal emulator @@ -219,17 +219,13 @@ function! SetDarkTheme() set background=dark - if g:dark_theme != "" - execute("colorscheme " . g:dark_theme) - endif + execute("colorscheme " . g:dark_theme) let g:theme_color = 'dark' endfunction function! SetLightTheme() set background=light - if g:light_theme != "" - execute("colorscheme " . g:light_theme) - endif + execute("colorscheme " . g:light_theme) let g:theme_color = 'light' endfunction From dba7db62a88d1f2d357c81e965bf52e8b03388ab Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Tue, 26 Jul 2022 16:29:25 -0400 Subject: [PATCH 2/2] fix typo --- install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index b69ebd6..852b293 100755 --- a/install.sh +++ b/install.sh @@ -132,7 +132,7 @@ setup_vimplug() { "+qall" export SHELL="$system_shell" - success "plugins updated/installed using vim-plug" + success "Plugins' updated/installed using vim-plug" } set_up_nvim() { @@ -148,9 +148,9 @@ set_up_nvim() { echo "set runtimepath^=~/.vim runtimepath+=~/.vim/after let &packpath=&runtimepath source ~/.vimrc" > $nvim_config - success "neovim config setup successed" + success "Neovim config setup successed" else - fail "neovim config is not setup(neovim not installed)" + fail "Neovim config is not setup(neovim not installed)" fi } @@ -158,9 +158,9 @@ set_up_tmux() { if program_exists "tmux"; then backup_file "$HOME/.tmux.conf" try_symlink "$APP_PATH/.tmux.conf" "$HOME/.tmux.conf" && \ - success "tmux config setup successed" + success "Tmux config setup successed" else - fail "tmux config is not setup(tmux not installed)" + fail "Tmux config is not setup(tmux not installed)" fi } @@ -207,7 +207,7 @@ set_up_bash_tool(){ exit 0 fi fi - success "terminal configuration is sourced in zsh" + success "Terminal configuration is sourced in zsh" fi if program_exists "bash"; then @@ -227,7 +227,7 @@ set_up_bash_tool(){ exit 0 fi fi - success "terminal configuration is sourced in bash" + success "Terminal configuration is sourced in bash" fi }