Closed richyliu closed 2 years ago
Thanks!
The file syntax/latex.vim
is missing. I had to add a symbolic link to syntax/tex.vim
to get the code block highlighted:
cd /usr/local/share/nvim/runtime/syntax/
sudo ln -s tex.vim latex.vim
The file
syntax/latex.vim
is missing. I had to add a symbolic link tosyntax/tex.vim
to get the code block highlighted:cd /usr/local/share/nvim/runtime/syntax/ sudo ln -s tex.vim latex.vim
What I did was add 'latex=tex'
to the g:rmd_fenced_languages
in my vimrc
This pull request adds an optional "=" in front of the language name when detecting code blocks. Latex blocks in R markdown requires the code block language to be "=latex" instead of "latex" (so pandoc does not mess with it).