Hey, @adamhsparks the other day you mentioned using neovim as your #RStats IDE. Is there a good guide to follow to get it set up with plot support and all that?

@adamhsparks @eliocamp I wrote a quick general guide a little while ago: https://petejon.es/posts/2025-01-29-using-neovim-for-r/ it could use an update but overall it might still be helpful.

No off-the-shelf tooling for plots that I'm aware of - Neovim is ultimately a TUI so graphics need to be handled in a separate window. I just use my window manager to pin the plot window that R spawns and have no problems at all, and httpgd can be useful for adding some extra functionality too.

A brief guide to using Neovim as an R (and Quarto) development environment

A top-level overview of how to use Neovim for interactive data analysis with R and Quarto.

Pete Jones
@eliocamp @adamhsparks you must install https://github.com/R-nvim/R.nvim and r-language server.
GitHub - R-nvim/R.nvim: Neovim plugin to edit R files

Neovim plugin to edit R files. Contribute to R-nvim/R.nvim development by creating an account on GitHub.

GitHub

@eliocamp I’ve used Lazyvim, which has support for R plugins, i.e., language server and R.nvim included, with {httpgd} for graphics support. The R.nvim wiki has a good section on this, https://github.com/R-nvim/R.nvim/wiki/Configuration. I keep intending to set up in-terminal support, Ghostty supports this and I just need to configure the splits to do this for me.

Here’s my .files, https://codeberg.org/adamhsparks/dotfiles/src/branch/main/.config/nvim