Add poetry vim alias, change order of install

This commit is contained in:
Evie Litherland-Smith 2023-01-23 11:30:06 +00:00
parent e875c0ac75
commit 6b2d664e0d
3 changed files with 18 additions and 19 deletions

View file

@ -1,3 +1,3 @@
alias vim="nvim"
alias pvim="poetry run nvim"
alias lg="lazygit"
alias kssh="kitty +kitten ssh"

View file

@ -43,7 +43,6 @@ fi
if [ ! which -a fzf > /dev/null ]
then
python3 -m pip install --user pipx
pipx ensurepath
fi
# pyenv

View file

@ -45,6 +45,23 @@ PACKER_REPO="https://github.com/wbthomason/packer.nvim"
PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
git_clone_if_missing "$PACKER_REPO" "$PACKER_DIR"
# Set up git editor if missing
grep "editor" "$HOME/.gitconfig" > /dev/null || git config --global core.editor "nvim"
# Add NerdFont symbols
mkdir -p "$HOME/.local/share/fonts"
for FILE in nerdfont_symbols/*
do
create_symlink "$HOME/.local/share/fonts" "$FILE"
done
# Ensure nvim plugins
mkdir -p "$HOME/.local/bin"
for FILE in bin/*
do
which -a "$(basename $FILE)" > /dev/null || create_symlink "$HOME/.local/bin" "$FILE"
done
# oh-my-zsh
if [ ! -d "$ZSH" ]
then
@ -63,20 +80,3 @@ then
create_symlink "$OHMYZSH_DIR" "./aliases.zsh"
create_symlink "$OHMYZSH_DIR" "./completions.zsh"
fi
# Set up git editor if missing
grep "editor" "$HOME/.gitconfig" > /dev/null || git config --global core.editor "nvim"
# Add NerdFont symbols
mkdir -p "$HOME/.local/share/fonts"
for FILE in nerdfont_symbols/*
do
create_symlink "$HOME/.local/share/fonts" "$FILE"
done
# Ensure nvim plugins
mkdir -p "$HOME/.local/bin"
for FILE in bin/*
do
which -a "$(basename $FILE)" > /dev/null || create_symlink "$HOME/.local/bin" "$FILE"
done