luochen1990 / rainbow

Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
Apache License 2.0
1.78k stars 95 forks source link

[Bug] conflict with other plugin #186

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago

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

luochen1990 commented 1 year ago

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

Freed-Wu commented 1 year ago

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

luochen1990 commented 1 year ago

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