30 lines
963 B
Bash
30 lines
963 B
Bash
NVIM_CONF_GIT="https://gitlab.orion-technologies.io/backups/neovim-backup.git"
|
|
required_packages=(universal-ctags fzf ripgrep neovim)
|
|
|
|
# Handle Installation Per OS
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
if ! which brew; then
|
|
echo "Installing brew, why the fuck aren't you using it...?"
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
for package in "${required_packages[@]}"; do
|
|
echo "Installing ${package}"
|
|
brew install "${package}"
|
|
done
|
|
|
|
fi
|
|
|
|
echo "Installing packer.nvim"
|
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
|
|
|
if [[ ! -d "${HOME}/.config" ]]; then
|
|
echo "The .config directory does not exist, creating now"
|
|
mkdir "${HOME}/.config"
|
|
fi
|
|
|
|
echo "Installing neovim configuration from ${NVIM_CONF_GIT}"
|
|
git clone "${NVIM_CONF_GIT}" ~/.config/nvim
|
|
|
|
echo "Finished installation"
|