Automatically apply rainbow on file open
ezzatron opened this issue · comments
Erin commented
Hi there. I could have sworn this package used to apply rainbow brackets when opening a file. Now it seems like I have to do it manually. Is there a way to get the bracket coloring to apply automatically again?
Screen.Recording.2021-05-07.at.10.30.18.am.mov
My config looks like this:
{
"debug": true,
"languages":
{
"javascript":
{
"extensions":
[
"js",
"jsx"
],
"mode": "all"
}
},
"rainbow_colors":
{
"matched":
[
"#FE8F95",
"#F9C189",
"#C2ECA2",
"#78E6F4",
"#EAA1FE"
],
"unmatched": "#CCCCCC"
}
}
Erin commented
Never mind, I guess my config was out of date. Updated config that worked for me:
{
"brackets": {
"pairs": {
"(": ")",
"[": "]",
"{": "}"
},
"filetypes": {
"default": {
"opening": [
"(",
"[",
"{"
],
"ignored_scopes": [
"comment",
"string"
]
},
"scheme": {
"opening": [
"(",
"[",
"{"
],
"ignored_scopes": [
"comment",
"string",
"constant.character",
"symbol"
],
"extensions": [
"scm",
"ss"
]
},
"json": {
"opening": [
"[",
"{"
],
"ignored_scopes": [
"comment",
"string"
],
"extensions": [
"json",
"sublime-settings",
"sublime-menu",
"sublime-build",
"sublime-keymap",
"sublime-commands",
"sublime-theme",
"sublime-color-scheme"
]
},
"js": {
"opening": [
"(",
"[",
"{"
],
"ignored_scopes": [
"comment",
"string"
],
"extensions": [
"js",
"jsx",
"ts",
"tsx"
]
}
}
},
"rainbow_colors": {
"matched": [
"#FE8F95",
"#F9C189",
"#C2ECA2",
"#78E6F4",
"#EAA1FE"
],
"mismatched": "#CCCCCC"
}
}