vladtarko / nvim-for-R

neovim configuration for using it with R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Based on the 'Quarto Nvim Kickstarter'

https://github.com/jmbuhr/quarto-nvim-kickstarter

Added more R-specific packages, particularly:

  • jamespeapen/Nvim-R
  • jalvesaq/cmp-nvim-r

Companion to https://github.com/quarto-dev/quarto-nvim.

This requires Neovim >= v0.9.0 (https://github.com/neovim/neovim/releases/tag/stable)

Using visidata from nvim

Add the functions from the Rprofile file to your own .Rprofile.

Install visidata: https://www.visidata.org/install/

This allows you to have a nice terminal viewer of R dataframes, and also to generate a summary of your dataframe. The currently set shortcuts for this are \V (for view) and \S (for summary).

Videos

Check out this playlist for a full guide and walkthrough: https://youtube.com/playlist?list=PLabWm-zCaD1axcMGvf7wFxJz8FZmyHSJ7

Setup

Clone this repo into ~/.config/nvim/ or copy-paste just the parts you like.

If you already have your own configuration, check out lua/plugins/quarto.lua for the configuration of all plugins directly relevant to your Quarto experience.

This configuration can make use of a "Nerd Font" for icons and symbols. Download one here: https://www.nerdfonts.com/ and set it as your terminal font.

Unix, Linux Installation

git clone https://github.com/jmbuhr/quarto-nvim-kickstarter.git ~/.config/nvim

Windows Powershell Installation

git clone https://github.com/jmbuhr/quarto-nvim-kickstarter.git "$env:LOCALAPPDATA\nvim"

The telescope file finder uses fzf for fuzzy finding via the telescope-fzf-native extension. It will automatically install fzf, but needs some requirements which are not pre-installed on Windows. Check out the previous link for those (or comment out the extension in ./lua/plugins/ui.lua).

Now you are good to go!

Updating

Certain updates to plugins may leave behind unused plugin data. If this configuration produces an error on startup, try removing those first, allowing the lazy.nvim package manager to recreate the correct plugin structure:

rm -r ~/.local/share/nvim
rm -r ~/.local/state/nvim

Links to the plugins

Some of the plugins included are:

About

neovim configuration for using it with R

License:MIT License


Languages

Language:Lua 98.7%Language:Scheme 1.3%