Fix mac specific lazygit, add nvim install script to main install

This commit is contained in:
Evie Litherland-Smith 2023-01-10 21:41:50 +00:00
parent 7254653515
commit bf837aeedb
3 changed files with 7 additions and 25 deletions

View file

@ -7,6 +7,8 @@ if [ ! -d $PACKER_DIR ]; then
fi
NVIM_DIR=$(dirname $(readlink -f $0))
/usr/bin/env python3 -m venv "$NVIM_DIR/venv"
/usr/bin/env python3 -m venv --clear "$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
nvim -c "PackerInstall" -c "qa"

View file

@ -1,5 +1,4 @@
require 'nvim-treesitter.configs'.setup {
ensure_installed = { "python" },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,

View file

@ -1,17 +1,6 @@
#! /usr/bin/env sh
# Install various dotfiles into their proper places
# Get machine for specific config locations
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
echo "Machine: ${machine}"
# .config files
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
mkdir -p "$CONFIG_DIR"
@ -22,18 +11,10 @@ for FILE in config/*; do
then
ln -s $(readlink -f "$FILE") "$CONFIG_DIR/$FILENAME"
echo "$(readlink -f $FILE) -> $CONFIG_DIR/$FILENAME"
else
echo "$CONFIG_DIR/$FILENAME already exists"
fi
done
# Mac specific lazygit setup (because of course)
# UPDATE: not needed if XDG_CONFIG_HOME is set
# if [ $machine == "Mac" ]
# then
# rm "$CONFIG_DIR/lazygit"
# echo "Removed $CONFIG_DIR/lazygit"
# if [ ! -e "$HOME/Library/Application Support/lazygit" ]
# then
# ln -s "$(readlink -f config/lazygit)" "$HOME/Library/Application Support/lazygit"
# echo "$(readlink -f config/lazygit) -> $HOME/Library/Application Support/lazygit"
# fi
# fi
# nvim setup
./config/nvim/install.sh