dotfiles/.dotfiles/bootstrap/85_nvim.sh
2024-01-31 11:26:31 +01:00

13 lines
489 B
Bash
Executable file

#!/bin/bash
# Install nvchad
if [ ! -d "$HOME/.config/nvim" ]; then
echo "Installing nvchad"
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
fi
# Check if .config/nvim/custom is a symlink, and if not, symlink to .dotfiles/nvchad/custom
if [[ -d "$HOME/.config/nvim/lua/custom" && ! -L "$HOME/.config/nvim/lua/custom" ]]; then
mv $HOME/.config/nvim/lua/custom $HOME/.config/nvim/lua/custom_2
ln -s $HOME/.dotfiles/nvchad/custom/ $HOME/.config/nvim/lua/
fi