2  Neovim

2.1 Install Neovim

sudo add-apt-repository ppa:neovim-ppa/stable 
sudo apt update

sudo apt install neovim

2.2 Install packer

Packer plugin/package management for Neovim

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

Then go in ~/.config and clone the configuration files:

git clone git@github.com:PMassicotte/nvim.git

From neovim, update the plugins:

:PackerSync
:PackerUpdate

2.3 Packaged neovim

There are some pre-configured neovim environments:

  • https://www.lunarvim.org/
  • https://astronvim.github.io/

2.4 How to configure R for neovim

https://github.com/jalvesaq/cmp-nvim-r

Since cmp-nvim-r and the R package languageserver provide completions for the same code, and completions from the languageserver might be the first ones to be displayed by nvim-cmp, you may want to put this in your ~/.Rprofile:

# Disable completion from the language <!-- server -->
options(
  languageserver.server_capabilities = 
    list(
      completionProvider = FALSE, 
      completionItemResolve = FALSE
    )
)