1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Renamed nvim to neovim

This commit is contained in:
Ryan Kes 2020-02-14 16:50:49 +01:00
parent 2ed3e093da
commit 769c22c500
3 changed files with 21 additions and 5 deletions

View File

@ -131,3 +131,5 @@ A repository of my personal configuration files.
:END: :END:
This theme is released under the MIT License. For more information read This theme is released under the MIT License. For more information read
the [[file:LICENSE.org][license]]. the [[file:LICENSE.org][license]].
# LocalWords: Neovim

24
install
View File

@ -10,6 +10,12 @@ thinkpad)
;; ;;
esac esac
# Create nvim config directory if it doesn't exist
if [ ! -d ~/.config/nvim ]; then
echo "Creating ~/.config/nvim"
mkdir -p ~/.config/nvim
fi
for d in $(find -- */ -maxdepth 0 -type d | cut -f1 -d '/'); do for d in $(find -- */ -maxdepth 0 -type d | cut -f1 -d '/'); do
echo "Linking $d..." echo "Linking $d..."
(stow -t "$HOME" "$d") (stow -t "$HOME" "$d")
@ -19,18 +25,26 @@ done
update-desktop-database ~/.local/share/applications/ update-desktop-database ~/.local/share/applications/
xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol
# Install zplug if it doesn't exist yet
if [ ! -d ~/.zplug ]; then
echo "Installing zplug"
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi
# Install vim plugins & requirements # Install vim plugins & requirements
if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then
pip install --user pynvim pip install --user pynvim
fi fi
nvim +PlugInstall +qall
# Create nvim config directory if it doesn't exist # Install plug package manager if it doesn't exist
if [ ! -d ~/.config/nvim ]; then if [ ! -d ~/.config/nvim/plugged ]; then
echo "Creating ~/.config/nvim" curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
mkdir -p ~/.config/nvim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi fi
# Install Neovim plugins
nvim +PlugInstall +qall
# Notify user to manually symlink files # Notify user to manually symlink files
if [ ! -z "$EXTENSION" ]; then if [ ! -z "$EXTENSION" ]; then
echo "\n\nDon't forget to symlink these files:\n\n" echo "\n\nDon't forget to symlink these files:\n\n"