Files
Neolite/install.sh
Arkaprabha Chakraborty b085f92c07 Fix a mistake in the dependency management section of the installer
Changes to be committed:
  modified:   install.sh
2023-03-10 18:32:22 +05:30

29 lines
924 B
Bash
Executable File

#!/bin/bash
if command -v nvim >/dev/null 2>&1 ; then
:
else
echo "No installation of Neovim was found"
echo "Quitting now..."
exit 127
fi
NPMDP=""
if command -v npm >/dev/null 2>&1 ; then
NPMDP="pyright prettier"
else
echo "No installation of npm was found"
echo "Some lsp packages won't automatically be installed"
fi
[ -d "$HOME/.local/share/nvim/site/pack/packer" ] && rm -rf $HOME/.local/share/nvim/site/pack/packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim $HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
[ -d "$HOME/.config/nvim" ] && mv $HOME/.config/nvim $HOME/.config/nvim-$(date "+%F-%T").bak
mkdir -p $HOME/.config/nvim && git clone --depth 1 https://github.com/arkorty/neolite.git $HOME/.config/nvim
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
nvim +TSUpdate "+MasonInstall stylua rustfmt black clang-format $NPMDP"