Skip to content

Instantly share code, notes, and snippets.

@witt3rd
Last active September 13, 2020 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save witt3rd/ad4dfda42d0b3b52720bdbdf973f3110 to your computer and use it in GitHub Desktop.
Save witt3rd/ad4dfda42d0b3b52720bdbdf973f3110 to your computer and use it in GitHub Desktop.
Neovim setup

Neovim

brew install neovim
mkdir ~/.config/nvim
touch ~/.config/nvim/init.vim
cd ~/.config/nvim
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

You should now have plug.vim in your autoload directory so it will load of on start.

mkdir ~/.config/nvim/vim-plug
touch ~/.config/nvim/vim-plug/plugins.vim

Edit plugins.vim:

" auto-install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  "autocmd VimEnter * PlugInstall
  "autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin('~/.config/nvim/autoload/plugged')

    " Idris2
    Plug 'edwinb/idris2-vim'

call plug#end()

Add the following line to init.vim:

source $HOME/.config/nvim/vim-plug/plugins.vim

Tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment