Someone suggested to load vimtex for .Rnw files, see here. I'm not really into the whole R community, but I have to admit that rnoweb and Rmarkdown and similar looks very interesting!
I've noticed that the "intrinsic" rnoweb plugin that ships with Vim relies on the selected LaTeX plugin with runtime! ftplugin/tex.vim. I was curious if it would be interesting and possible to somehow collaborate to make a good interface between vimtex and Nvim-R in this sense.
I think vimtex could provide some nice features to rnoweb files, like:
omnicompletion (which works well with most autocomplete frameworks)
compilation of .tex to .pdf with good support for parsing errors and showing them in the quickfix list
text objects
some utility commands for LaTeX (e.g. toggle delimiters, environments, and so on)
On the other hand, it seems you have a backend that already works well for everything R related, and in this case, for compiling from .Rnw to .tex, as well as some related stuff like synctex support between .Rnw and .tex, and so on.
Someone suggested to load vimtex for
.Rnw
files, see here. I'm not really into the whole R community, but I have to admit that rnoweb and Rmarkdown and similar looks very interesting!I've noticed that the "intrinsic" rnoweb plugin that ships with Vim relies on the selected LaTeX plugin with
runtime! ftplugin/tex.vim
. I was curious if it would be interesting and possible to somehow collaborate to make a good interface between vimtex and Nvim-R in this sense.I think vimtex could provide some nice features to rnoweb files, like:
.tex
to.pdf
with good support for parsing errors and showing them in the quickfix listOn the other hand, it seems you have a backend that already works well for everything R related, and in this case, for compiling from
.Rnw
to.tex
, as well as some related stuff like synctex support between.Rnw
and.tex
, and so on.What do you think?