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

Make color lists independent for bracket types #180

Open PlasmaHH opened 2 years ago

PlasmaHH commented 2 years ago

As it is now, all the opening/closing level share one list of colours, that is {([ will use three different colours. Thats a little bit annoying when writing C++ or similar code, where everything is at least in one level of brackets. Making the first level white is a bit less annoying, but then already { foo(); } such () will have a different colour.

For me this does not increase readability, as I would like colours to be an indication of "too deeply nested" (thus my colours get more and more saturated with each level).

Therefore I would ask if its possible to make the lists of brackets have independent colours, so that each opening { or ( or [ or similar starts with the first and then only its own kinds gets the next and so on. This should be an option of course for people to select their favorite behaviour.