This commit is contained in:
Wenwen Zhang 2024-06-02 09:58:04 +08:00
parent 17ca00ae10
commit fe485f3132
2 changed files with 20 additions and 5 deletions

View File

@ -3,5 +3,6 @@ local Plug = vim.fn['plug#']
vim.call('plug#begin')
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
vim.call('plug#end')

View File

@ -1,27 +1,41 @@
#!/usr/bin/env bash
#=============================================================================
# install.sh --- bootstrap script for neovim
# Copyright (c) 2024-2024 Wenwen Zhang & Contributors
# Author: Wenwen Zhang < zhangwenwen1000@gmail.com >
# URL:
# License: GPLv3
#=============================================================================
echo "NeoVim Configuration Installation Script is Running..."
cd ~
CONFIGBASE="myconfig.nvim"
CONFIG_DIR=".config/nvim"
CONFIG_DIR=".config"
TIMESTAMP=$(date "+%Y-%m-%d_%H:%M:%S")
echo "Backup" "$CONFIG_DIR" to "$CONFIG_DIR" "_" "$TIMESTAMP"
echo "Backup" "$CONFIG_DIR"/nvim to "$CONFIG_DIR"/nvim "_" "$TIMESTAMP"
if [ -d "$CONFIG_DIR" ]; then
if [ -d "$CONFIG_DIR/nvim" ]; then
mv $CONFIG_DIR/nvim $CONFIG_DIR/nvim_BACKUP_$TIMESTAMP
else
if [ -d "$CONFIG_DIR" ]; then
else
# mkdir .config
fi
fi
git clone http://8.130.160.147:3000/Configs/$CONFIGBASE.git
mv $CONFIGBASE/config/nvim $CONFIG_DIR/