Skip to content

neoclide/coc-r-lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R LSP Client

R LSP Client for coc.nvim, powered by the R Language Server.

Note the languageserver doesn't work with unsaved files.

Install

In your vim/neovim, run the following command:

:CocInstall coc-r-lsp

Configuration options

This package exposes the following configuration options:

  • r.lsp.path: Path to R binary for launching the R Language Server package (see below). Examples: /usr/bin/R (Linux/macOS), C:\\Program Files\\R\\R-3.5.2\\bin\\x64\\R.exe (Windows).
  • r.lsp.debug: Enable debugging traces. Defaults to false. Set this to true if you are having trouble getting the Language Server working.
  • r.lsp.diagnostics: Enable linting of R code, using the lintr package. Defaults to true. To disable this, you must have at least version 0.2.7 of the R Language Server installed.

Checkout using configuration file.

Requirements

coc-r-lsp requires the R Language Server, which is a package that runs in R. It can be easily installed from CRAN:

install.packages("languageserver")

The development version of languageserver can be installed from GitHub, using the devtools package:

devtools::install_github("REditorSupport/languageserver")

License

MIT License. See the license for more details.