aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/neovim-dict.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/neovim-dict.sh')
-rwxr-xr-xbootstrap/neovim-dict.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/bootstrap/neovim-dict.sh b/bootstrap/neovim-dict.sh
new file mode 100755
index 0000000..fa29728
--- /dev/null
+++ b/bootstrap/neovim-dict.sh
@@ -0,0 +1,33 @@
1#!/bin/sh
2set -eu
3
4SPELL_DIR="$HOME/.local/share/nvim/site/spell"
5mkdir -p "$SPELL_DIR"
6
7cd "$SPELL_DIR"
8
9download() {
10 url="$1"
11 file=$(basename "$url")
12
13 if [ -f "$file" ]; then
14 echo "Skipping $file (already exists)"
15 return
16 fi
17
18 echo "Downloading $file..."
19 if command -v wget >/dev/null 2>&1; then
20 wget -q --show-progress "$url"
21 elif command -v curl >/dev/null 2>&1; then
22 curl -fLO "$url"
23 else
24 echo "ERROR: neither wget nor curl found"
25 exit 1
26 fi
27}
28
29# Deutsche Wörterbücher
30download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.spl"
31download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.sug"
32
33echo "Deutsche Wörterbücher für Neovim installiert!"