We will first install vim-plug to manage plugins, and will then install the Gruvbox theme. The end result will look like this:
GenerateĀ vim-plug by executing the following command:
$ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
Ā Ā https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
In ~/.config/nvim, create a new file called init.vim ($ touch init.vim)
Enter the following code in init.vim:
call plug#begin('~/.local/share/nvim/plugged')
Start neovim ($ nvim) and, while it is in command mode, type :PlugInstall
Restart neovim to get the theme working
We first install vim-plug with the curl command.
We then create init.vim, the file that holds all of neovimās configuration (make the necessary directories if theyāre missing).
In this file we have to create a section for plugins, and declare in the plug#begin tag in which folder vim-plug can install those plugins. We also add a colorscheme and background information so that neovim knows which theme to load and what the background colour should be.
Finally we start neovim (ignore the ācan not find color schemeā error) and use vim-plugās :Pluginstall command in neovim to install the theme. This time you will not see the error as the theme has now been installed.
https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/
https://github.com/junegunn/vim-plug
https://github.com/morhetz/gruvbox