jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 125 forks source link

FR: an Rmarkdown sections/chunks browser/outline #725

Closed iago-pssjd closed 1 year ago

iago-pssjd commented 1 year ago

Hi!

Let's start with a couple of RStudio screenshots: outline Screenshot_2023-04-28_16-13-41

There we can see an outline of the sections of an RMarkdown file and also other of the chunks. Further, we can move through the file by selecting on them the desired section/chunk.

Is there a similar funcionality with Nvim-R? If not, could it be implemented, at least a command for seeing (like \ro) the different sections/chunks?

Thanks

srearl commented 1 year ago

You can achieve this with the Voom package, which works well for Rmd plus many other markup formats. Screenshot_20230428_080203

iago-pssjd commented 1 year ago

Thanks @srearl . Beyond using Voom, in order to configure it, I've just seen https://github.com/jalvesaq/Nvim-R/blob/093cb979650ac5b0c9b9f49d3cfd5151557668af/doc/Nvim-R.txt#L242-L250