rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

[Bug] Does not work well in Rmarkdown code chunk

Open shaman-yellow opened this issue 1 year ago • 1 comments

Config:

let g:rainbow_conf = {
      \ 'separately': {
      \ 'rmd': {
      \ 'parentheses_options': 'containedin=rmdrInline,@Rmdr contained',
      \ },
      \ 'nerdtree': 0,
      \ }
      \ }

Some results:

Screenshot from 2024-12-12 14-32-09

The syntax of rmd.vim can found in https://github.com/jalvesaq/R-Vim-runtime

shaman-yellow avatar Dec 12 '24 06:12 shaman-yellow

Can you check which syntax rules the brackets on lines 73 and 77 are matched with using the tools described in the troubleshooting section of README? I suspect that a keyword syntax rule is overriding the rainbow rules

luochen1990 avatar Dec 19 '24 07:12 luochen1990