Installing neovim and my custom configuration, plugins, etc...
At the time of writing, the stable version of neovim is 0.4, but some of the plugins I use require version >0.5. The steps below detail the installation of the unstable/nightly builds of neovim.
$ brew install --HEAD luajit
$ brew install --HEAD neovim
-
node.js
$ brew install node.js
-
fzf
$ brew install fzf $ $(brew --prefix)/opt/fzf/install
-
ripgrep
$ brew install ripgrep
Ubuntu installation instructions say to add the unstable repository using add-apt-repository
, but that may not work depending on your proxy configuration. The error below is not obvious that the proxy is the problem.
$ sudo -E add-apt-repository ppa:neovim-ppa/unstable
Cannot add PPA: 'ppa:~neovim-ppa/ubuntu/unstable'.
You can manually add the repository.
-
Update repository sources
Create a file in
/etc/apt/sources.list.d
$ sudo cat /etc/apt/sources.list.d/neovim-unstable.list # neovim - nightly build deb http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute main deb-src http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute main
-
Get PUBKEY value
Run
apt update
, which will fail, but it will give an error that containts the PUBKEY that we need for the next step.$ sudo apt update Get:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease [114 kB] Hit:2 http://archive.ubuntu.com/ubuntu hirsute InRelease Get:3 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute InRelease [18.1 kB] Get:4 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [114 kB] Get:5 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB] Err:3 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55F96FCF8231B6DD Reading package lists... Done W: GPG error: http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55F96FCF8231B6DD E: The repository 'http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
-
Download and add PUBKEY
Use the PUBKEY above and add it to the URL below to add the key.
$ curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x55F96FCF8231B6DD" | sudo apt-key add OK
-
Run apt update
$ sudo apt update Get:1 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute InRelease [18.1 kB] Get:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease [114 kB] Hit:3 http://archive.ubuntu.com/ubuntu hirsute InRelease Get:4 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [114 kB] Get:5 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB] Get:6 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute/main Sources [796 B] Get:7 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute/main amd64 Packages [588 B] Get:8 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu hirsute/main Translation-en [200 B] Fetched 348 kB in 45s (7660 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
-
Install neovim
$ sudo apt install neovim
-
node.js
$ sudo apt install npm
-
fzf
$ sudo apt install fzf
-
ripgrep
$ sudo apt install ripgrep
$ mkdir -p ~/.config/nvim
$ git clone https://github.com/Kristijan/neovim.git ~/.config/nvim
Follow the installation instructions at https://github.com/junegunn/vim-plug
Start nvim
and run :PlugInstall
. When you first state it, it will error because it can't find themes and plugins, but you can ignore that, as they'll be installed by Plug.