plugins: Change easychair2 url
[vimconf.git] / install.sh
index b6ce4d78021614f5f337c1df98464b347fe83617..4d7ec01a2aa14f7bd5d17983f7484120ad82a59a 100755 (executable)
@@ -4,6 +4,10 @@ set -e
 
 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
@@ -25,20 +29,31 @@ check_py3()
 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 curl
     check_prog git
     check_vim +python3
+    check_vim +lua
     check_py3 neovim
+    check_font "Hack NF"
 }
 
 backup() {
@@ -63,13 +78,14 @@ install() {
     ln -s $HOME/.vim/gvimrc $HOME/.gvimrc
     ln -s $HOME/.vim $HOME/.config/nvim
 
-    echo ""
-    echo "vim-startify may complain about invalid viminfo file. It will"
-    echo "disappear once you opened the first file."
-    echo ""
-    echo "Add this line to your shell configuration, e.g., ~/.profile, to"
-    echo "use vim as man pager:"
-    echo "  export MANPAGER=\"view -c MANPAGER -\""
+    cat << EOF
+At the first start the plugins will be installed. Hence, at the first
+start the plugin provided colorscheme is not available yet.
+
+Add this line to your shell configuration, e.g., ~/.profile, to
+use vim as man pager:
+  export MANPAGER=\"vi -c ASMANPAGER -\"
+EOF
 }