vim-rmarkdown
vim-rmarkdown copied to clipboard
syntax highlight shows weird color
I installed the plugin following the instruction but got wierd folding (to one line when open it) and the highlight looks weird

My .vimrc:
Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'rstudio/rmarkdown'
Plugin 'vim-pandoc/vim-rmarkdown'
I'm seeing the same issue running Neovim (NVIM v0.6.0-dev+13-ga6cdfa27d)

My init.lua - installing with packer
-- Rmarkdown
use {
"vim-pandoc/vim-pandoc",
}
use {
"vim-pandoc/vim-pandoc-syntax",
}
use {
"vim-pandoc/vim-rmarkdown",
run = 'cd app && yarn install',
cmd = 'MarkdownPreview',
ft = "rmarkdown"
}
Note - Line # 20 highlights as expected because it is inlined R code (i.e., r nasdaq$Date[1] and r nasdaq$Date[length(nasdaq$Date)]), but just a $ on a normal line also has the different background like headings.
Issue persists with other color scheme.
2 years later, but the only solution I found was uninstalling vim pandoc and vim pandoc syntax, this plugins is still working independently of those ones, just be ensured to have installed rmarkdown and pandoc in your system