You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Nvim reports the following error while open the RMarkdown file:
After removing the corresponding lines (here and here), the errors disappeared. And the highlights seem normal.
The text was updated successfully, but these errors were encountered:
@wenjie1991 I think you have an issue with this plugin's dependencies and/or the order in which you load them. This plugin is dependent on both vim-pandoc and vim-pandoc-syntax. The syntax rules included here and meant to be an extensions of the ones in vim-pandoc-syntax. The PandocHighlight command that is causing you trouble here is defined over there.
Hi @alerque, thanks for replying.
Yes, there are no errors when I enable the vim-pandoc-syntax plugin.
So my original question was solved.
However, it seems the enabling of the vim-pandoc-syntax plugin will disable the python block highlighting.
And the highlighting function is normal after disabling the vim-pandoc-syntax plugin.
It looks like that the vim-pandoc-syntax plugin has a higher priority.
Finally, I tried to trigger the highlighting of python block by setting:
let g:pandoc#syntax#codeblocks#embeds#langs = ["python", "r"]
Hmm, that legitimately looks like a bug. Running this plugin should enable those highlights by default. It kind of looks like the two implementations were done separately and have diverged. We should fix that, so I'm going to re-open this issue if you don't mind until there is a clean satisfactory fix.
The Nvim reports the following error while open the RMarkdown file:

After removing the corresponding lines (here and here), the errors disappeared. And the highlights seem normal.
The text was updated successfully, but these errors were encountered: