Created
June 15, 2016 22:17
-
-
Save alok/b8d8f77e228e8ef49f39d9f57389d8d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
command -v nvim >/dev/null 2>&1 || { brew tap neovim/neovim; brew install --HEAD neovim;} | |
# mkdir ~/.config/nvim | |
mkdir "$HOME/.config/nvim" | |
NVIM_HOME="$HOME/.config/nvim" | |
# vim-plug install | |
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# define vimrc for neovim | |
NVIMRC="$NVIM_HOME/init.vim" | |
# create file if it doesn't exist to avoid issues with appending to nonexistent | |
# file in zsh | |
touch "$NVIMRC" | |
# plugin install | |
echo "Plug 'sourcegraph/sourcegraph-vim'" >> "$NVIMRC" | |
nvim +PlugInstall | |
# python-client install | |
pip2 install --upgrade neovim | |
pip3 install --upgrade neovim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment