nixos/config/nvim/install.sh
Evie Litherland-Smith 85342ba955 Convert nvim config to full dotfiles repo
Restructure ready for adding additional config files
2023-01-10 07:55:21 +00:00

13 lines
429 B
Bash
Executable file

#! /usr/bin/env sh
# Install Packer
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))
/usr/bin/env 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