nixos/install.sh

13 lines
380 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
# Link config directories
mkdir -p $HOME/.config/nvim/
ln -s $(readlink -f init.lua) $HOME/.config/nvim/init.lua
ln -s $(readlink -f lua) $HOME/.config/nvim/lua