nixos/install.sh

21 lines
658 B
Bash
Raw Normal View History

#! /usr/bin/env sh
2022-11-01 16:02:06 +00:00
# Install Packer
2022-11-02 08:52:48 +00:00
PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
if [ ! -d $PACKER_DIR ]; then
git clone --depth 1 https://github.com/wbthomason/packer.nvim $PACKER_DIR
fi
NVIM_DIR=$(dirname $(readlink -f $0))
python3 -m venv "$NVIM_DIR/venv"
$NVIM_DIR/venv/bin/python -m pip install -U pip setuptools wheel || exit 1
$NVIM_DIR/venv/bin/python -m pip install -U pynvim
python3 -m pip install -U --user pipx || exit 1
python3 -m pipx ensurepath || exit 1
python3 -m pipx install pyright
python3 -m pipx install fortls
python3 -m pipx install black
python3 -m pipx install isort
python3 -m pipx install zimports