nvim config

This commit is contained in:
Felipe M 2024-01-31 11:26:31 +01:00
parent cdfac4d089
commit 9051320319
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
13 changed files with 399 additions and 0 deletions

View file

@ -5,3 +5,9 @@ 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