Nvim-R
ncm2
Our great sponsors
Nvim-R | ncm2 | |
---|---|---|
15 | 2 | |
935 | 1,332 | |
- | 0.1% | |
8.8 | 1.8 | |
9 days ago | about 2 years ago | |
Vim Script | Python | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Nvim-R
-
Outdated tutorials
If you do a lot of R coding, then a package more specific to R, and more fully featured is Nvim-R.
-
data science (jupyter notebooks) with vim?
The whole reason I ended up going this route was also sort of data-science related: there’s a really spectacular R plugin for Vim, which I wanted to recapitulate as best I could when using python: https://github.com/jalvesaq/Nvim-R
-
New to neovim, need quick help to set up R
I am slowly getting into using neovim. I am now trying to setup my R programming environment. I have successfully installed Nvim-R with Packer (https://github.com/jalvesaq/Nvim-R). Now, I would like to use the radian console (https://github.com/randy3k/radian/blob/master/README.md#nvim-r-support). In the documentation, it is said to put this in the config file:
-
Any Nvim-R users tried LSP?
But just wondering if people have tried using it with the Nvim-R plugin? I'm not sure it is worth the effort for me looking through the steps needed. Also, do I need to switch my init.vim/vimrc to lua? Perspectives appreciated!
-
Neovim support for editing Quarto (.qmd) files
However, there doesn't seem to be much available support yet for Quarto editing. The only plugin I could find is limited to syntax highlighting. To my knowledge, Quarto also isn't a built-in filetype yet. I've worked around this by manually creating a filetype and using R Markdown syntax highlighting with the Nvim-R plugin, which lets me send R code in chunks to a REPL and see results while I edit. Nvim-R also supports evaluation of Python code chunks using an R package that evaluates Python code, but that's not an ideal solution for editing a Python-only file.
-
neovim as a python IDE
looking for a neovim plugin that's similar to Nvim-R, but for python.
-
Getting ncm2 and ncm-r to work
For that reason, I want to use Nvim-R in combination with ncm-R. I get the completion to work if I use it manually with Ctrl+x Ctrl+o, but it does not start automatically. My init.vim file looks like this:
-
Advice for r and rmarkdown using vim?
I use Nvim-R. It took a bit of time to learn the key bindings, but the documentation is pretty clear.
-
Alternatives to Rstudio
If you want to go in a very different direction, you can try vim (or neovim) with nvim-r. For a variety of reasons, that’s what I tend to use.
-
To those that use R without RStudio: Why? and What do you do instead?
nvim + Nvim-R user here as well.
ncm2
-
Why LSP?
Assuming you're talking about this ncm[0], are you aware that ncm is a " completion framework for neovim", which is different from an LSP? ncm is either an LSP client itself, or, it is talking to neovim's internal LSP client, to get completions from LSPs.
It's also important to note that LSPs almost always provide you more than auto completion (for example, go to definition, go to implementation, find references).
Do let me know if you have more questions, neovim and LSPs are my "daily driver" as a dev, so to speak.
[0] https://github.com/ncm2/ncm2
-
Getting ncm2 and ncm-r to work
call plug#begin() " assuming you're using vim-plug: https://github.com/junegunn/vim-plug Plug 'ncm2/ncm2' Plug 'roxma/nvim-yarp' " enable ncm2 for all buffers autocmd BufEnter * call ncm2#enable_for_buffer() " IMPORTANT: :help Ncm2PopupOpen for more information set completeopt=noinsert,menuone,noselect " NOTE: you need to install completion sources to get completions. Check " our wiki page for a list of sources: https://github.com/ncm2/ncm2/wiki Plug 'ncm2/ncm2-bufword' Plug 'ncm2/ncm2-path' " R plugin " Plug 'jalvesaq/Nvim-R' " Plug 'ncm2/ncm2' " Plug 'roxma/nvim-yarp' Plug 'gaalcaras/ncm-R' if !has('nvim') Plug 'roxma/vim-hug-neovim-rpc' endif Plug 'ncm2/ncm2-bufword' Plug 'ncm2/ncm2-path' call plug#end()
What are some alternatives?
languageserver - An implementation of the Language Server Protocol for R
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
radian - A 21 century R console
ncm-R - R autocompletion for Neovim and vim 8 :memo: :bar_chart: :zap:
vim-slime - A vim plugin to give you some slime. (Emacs)
semshi - 🌈 Semantic Highlighting for Python in Neovim
nvim-tree.lua - A file explorer tree for neovim written in lua
defx.nvim - :file_folder: The dark powered file explorer implementation for neovim/Vim8
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
NeoVintageous - Vim for Sublime Text.
httpgd - Asynchronous http server graphics device for R.
vim-plug - :hibiscus: Minimalist Vim Plugin Manager