This commit is contained in:
Nachuan Tang
2022-07-27 00:17:02 -04:00
2 changed files with 11 additions and 15 deletions
+4 -8
View File
@@ -198,11 +198,11 @@
endif endif
" what to use for dark theme " what to use for dark theme
let g:dark_theme = '' let g:dark_theme = 'default'
let g:airline_dark_theme = "deus" let g:airline_dark_theme = "deus"
" what to use for light theme " what to use for light theme
let g:light_theme = '' let g:light_theme = 'default'
let g:airline_light_theme = "silver" let g:airline_light_theme = "silver"
" transparent backgroud for supported terminal emulator " transparent backgroud for supported terminal emulator
@@ -219,17 +219,13 @@
function! SetDarkTheme() function! SetDarkTheme()
set background=dark set background=dark
if g:dark_theme != "" execute("colorscheme " . g:dark_theme)
execute("colorscheme " . g:dark_theme)
endif
let g:theme_color = 'dark' let g:theme_color = 'dark'
endfunction endfunction
function! SetLightTheme() function! SetLightTheme()
set background=light set background=light
if g:light_theme != "" execute("colorscheme " . g:light_theme)
execute("colorscheme " . g:light_theme)
endif
let g:theme_color = 'light' let g:theme_color = 'light'
endfunction endfunction
+7 -7
View File
@@ -132,7 +132,7 @@ setup_vimplug() {
"+qall" "+qall"
export SHELL="$system_shell" export SHELL="$system_shell"
success "plugins updated/installed using vim-plug" success "Plugins' updated/installed using vim-plug"
} }
set_up_nvim() { set_up_nvim() {
@@ -148,9 +148,9 @@ set_up_nvim() {
echo "set runtimepath^=~/.vim runtimepath+=~/.vim/after echo "set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath let &packpath=&runtimepath
source ~/.vimrc" > $nvim_config source ~/.vimrc" > $nvim_config
success "neovim config setup successed" success "Neovim config setup successed"
else else
fail "neovim config is not setup(neovim not installed)" fail "Neovim config is not setup(neovim not installed)"
fi fi
} }
@@ -158,9 +158,9 @@ set_up_tmux() {
if program_exists "tmux"; then if program_exists "tmux"; then
backup_file "$HOME/.tmux.conf" backup_file "$HOME/.tmux.conf"
try_symlink "$APP_PATH/.tmux.conf" "$HOME/.tmux.conf" && \ try_symlink "$APP_PATH/.tmux.conf" "$HOME/.tmux.conf" && \
success "tmux config setup successed" success "Tmux config setup successed"
else else
fail "tmux config is not setup(tmux not installed)" fail "Tmux config is not setup(tmux not installed)"
fi fi
} }
@@ -207,7 +207,7 @@ set_up_bash_tool(){
exit 0 exit 0
fi fi
fi fi
success "terminal configuration is sourced in zsh" success "Terminal configuration is sourced in zsh"
fi fi
if program_exists "bash"; then if program_exists "bash"; then
@@ -227,7 +227,7 @@ set_up_bash_tool(){
exit 0 exit 0
fi fi
fi fi
success "terminal configuration is sourced in bash" success "Terminal configuration is sourced in bash"
fi fi
} }