dotfiles/neovim/scripts/deps.sh

19 lines
542 B
Bash
Raw Normal View History

2022-10-12 00:13:07 +00:00
#!/usr/bin/env bash
# This file installs dependencies needed for the Neovim plugins
echo "Please run this in sudo mode for sudo apt* commands"
# Pip and Python3
2022-10-13 00:47:16 +00:00
if [ ! python3 --version ] ; then
PYTHON_3=${PYTHON_3:-"python3.10"}
apt install $PYTHON_3
$PYTHON_3 -m ensurepip --upgrade
$PYTHON_3 -m pip install --upgrade pip
fi
2022-10-12 00:13:07 +00:00
# Neovim vim-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
2022-10-13 00:47:16 +00:00