luochen1990/rainbow

[Bug] conflict with other plugin

Freed-Wu opened this issue · 3 comments

To Reproduce

test.bbcode

I have 2 2560x1440 monitor:

[url=https://bbs.archlinux.org/]Arch Linux Forums[/url] 

[email]myname@example.com[/email] 

test.vim

#!/usr/bin/env -S vi -u
" $ uname -r
" 6.0.2-arch1-1
" $ has
" ✓ vi 0.8.0
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/luochen1990/rainbow
set runtimepath+=~/.local/share/nvim/repos/github.com/Winseven4lyf/vim-bbcode
let g:rainbow_active = 1
" $ chmod +x test.vim
" $ ./test.vim

Actual

Screenshot_20221027_220658

Expected

Screenshot_20221027_220727

It seems like rainbow is not very useful in this case. You can disable rainbow for this filetype.

Ok. Is it a temporary solution, or the only solution we can do?

Dealing with syntax conflict need some knowledge about Vim's syntax highlighting mechanism, if you are not familier with it, then I suggest to disable rainbow plugin specificly for this filetype, and this can be done in configuration, you can just see README and other issues to figure out how