From e86bb8fb1c09357d0cbd411c0f2a2f3fcf9d4c49 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 7 Jan 2026 17:41:33 +0100 Subject: neovim: Download skript für Wörterbücher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap-nvim-dict.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 bootstrap-nvim-dict.sh (limited to 'bootstrap-nvim-dict.sh') diff --git a/bootstrap-nvim-dict.sh b/bootstrap-nvim-dict.sh new file mode 100755 index 0000000..aae8f88 --- /dev/null +++ b/bootstrap-nvim-dict.sh @@ -0,0 +1,34 @@ +#!/bin/sh +set -eu + +SPELL_DIR="$HOME/.local/share/nvim/site/spell" +mkdir -p "$SPELL_DIR" + +cd "$SPELL_DIR" + +download() { + local url="$1" + local file + file=$(basename "$url") + + if [ -f "$file" ]; then + echo "Skipping $file (already exists)" + return + fi + + echo "Downloading $file..." + if command -v wget >/dev/null 2>&1; then + wget -q --show-progress "$url" + elif command -v curl >/dev/null 2>&1; then + curl -LO "$url" + else + echo "ERROR: neither wget nor curl found" + exit 1 + fi +} + +# Deutsche Wörterbücher +download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.spl" +download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.sug" + +echo "Deutsche Wörterbücher für Neovim installiert!" -- cgit v1.3