Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoclide/coc-r-lsp
R LSP Client for coc.nvim
https://github.com/neoclide/coc-r-lsp
Last synced: 4 days ago
JSON representation
R LSP Client for coc.nvim
- Host: GitHub
- URL: https://github.com/neoclide/coc-r-lsp
- Owner: neoclide
- License: mit
- Created: 2019-06-11T12:49:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T06:32:45.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T16:55:36.125Z (3 months ago)
- Language: TypeScript
- Size: 529 KB
- Stars: 49
- Watchers: 4
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# R LSP Client
R LSP Client for [coc.nvim](https://github.com/neoclide/coc.nvim), powered by the [R Language Server](https://github.com/REditorSupport/languageserver).
**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](https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file).
## Requirements
`coc-r-lsp` requires the [R Language Server](https://github.com/REditorSupport/languageserver), which is a package that runs in R.
It can be easily installed from CRAN:```r
install.packages("languageserver")
```The development version of languageserver can be installed from GitHub, using the devtools package:
```r
devtools::install_github("REditorSupport/languageserver")
```## License
MIT License. See [the license](LICENSE) for more details.