#!/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