dotfiles/nvim/.config/sh/env.d/set-up-spellfile.sh

12 lines
479 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env sh
# Set up a non-english spell dictionary if it doesn't exist yet.
if [ ! -e "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/spell/de.utf-8.spl" ]; then
printf "Neovim spell dictionary not yet installed, downloading..."
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/spell/"
wget -q 'https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.spl' -O "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/spell/de.utf-8.spl"
printf " done!\n"
fi