Move to Federated Gitea
This commit is contained in:
17
install-kickstart-nvim.sh
Executable file
17
install-kickstart-nvim.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
NVIM_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nvim"
|
||||
NVIM_DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/nvim"
|
||||
|
||||
# Check if kickstart.nvim is already installed
|
||||
if [ -d "$NVIM_CONFIG_DIR" ]; then
|
||||
echo "Neovim config already exists at $NVIM_CONFIG_DIR"
|
||||
else
|
||||
echo "Installing kickstart.nvim..."
|
||||
rm -rf "$NVIM_DATA_DIR"
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git "$NVIM_CONFIG_DIR"
|
||||
echo "Done. Launch nvim to complete plugin installation."
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user