junegunn / rainbow_parentheses.vim

:rainbow: Simpler Rainbow Parentheses
377 stars 24 forks source link

Curly braces ( { and } ) not working #10

Closed garymh closed 7 years ago

garymh commented 8 years ago

Hi @junegunn! Love the plugin, but I can't seem to get curly braces to work. I currently have this in my vimrc:

let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]

Is that the correct way to add a set of symbols?

junegunn commented 8 years ago

Yeah. But I've noticed that it may not work depending on the syntax of the file type. Not sure if there's a surefire solution. You'll see that the config works if you open an empty buffer with no file type and enable rainbow parens.

garymh commented 8 years ago

Ah, yeah - doesn't seem to. Ok, no prob! I was just curious.