dotfiles/modules/04-nvim.sh
Martin Büchler 7d13e6ff1c chore: initial commit of all dotfiles, configs, and setup scripts
Includes modular setup, device profile support, and documentation.

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
2025-08-07 23:05:28 +02:00

14 lines
480 B
Bash
Executable File

#!/usr/bin/env bash
# Install AstroNvim if not already installed
ASTRONVIM_DIR="$HOME/.config/nvim"
mkdir -p "$HOME/.config"
if [ ! -d "$ASTRONVIM_DIR" ] || [ -z "$(ls -A "$ASTRONVIM_DIR")" ]; then
echo "Installing AstroNvim..."
rm -rf "$ASTRONVIM_DIR"
git clone --depth 1 https://github.com/AstroNvim/template "$ASTRONVIM_DIR"
rm -rf "$ASTRONVIM_DIR/.git"
echo "AstroNvim installed in $ASTRONVIM_DIR"
else
echo "AstroNvim already installed. Skipping."
fi