check_vim()
{
+ if /usr/bin/vim --version | grep -q "NVIM"; then
+ return
+ fi
+
if /usr/bin/vim --version | grep -q "$1"; then
echo "vim has support for $1."
else
check_prog()
{
if which "$1" > /dev/null; then
- echo "$1 found"
+ echo "$1 found."
else
echo "$1 not found. Aborting."
exit
fi
}
+check_font()
+{
+ if fc-list | grep -q "$1"; then
+ echo "Font $1 found."
+ else
+ echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons."
+ fi
+}
+
check_requirements()
{
check_prog aspell
check_prog git
check_vim +python3
check_py3 neovim
+ check_font "Hack NF"
}
backup() {