Install build prerequisites
$ sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl doxygen
$ git clone https://github.com/neovim/neovim
$ cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo
Some of the dependencies may fail to download and you will need to download them manually to the .deps/build/download
directory and grant permissions, then repeat make CMAKE_BUILD_TYPE=RelWithDebInfo