oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
407 stars 55 forks source link

Allow nested configuration #89

Closed gbrunow closed 4 years ago

gbrunow commented 4 years ago

I've basically copied and pasted all the properties you had already defined but put them inside indentRainbow. That one one might set a preference by either the current way or nested like so:

  "indentRainbow": {
    "ignoreErrorLanguages": [
      "typescript",
      "markdown"
    ],
    "excludedLanguages": [
      "plaintext"
    ]
  },

and you can mix and match:

"indentRainbow.colors": [
    "rgba(113, 127, 140, 0.0500)",
    "rgba(140, 140, 140, 0.0500)",
    "rgba(113, 127, 140, 0.1000)",
    "rgba(140, 140, 140, 0.2000)",
    "rgba(113, 127, 140, 0.2000)",
    "rgba(140, 140, 140, 0.1500)",
    "rgba(113, 127, 140, 0.1500)",
    "rgba(140, 140, 140, 0.1000)",
    "rgba(113, 127, 140, 0.1000)",
    "rgba(140, 140, 140, 0.0500)",
    "rgba(113, 127, 140, 0.0500)",
    "rgba(140, 140, 140, 0.0250)",
    "rgba(113, 127, 140, 0.0250)",
    "rgba(140, 140, 140, 0.0125)",
    "rgba(113, 127, 140, 0.0125)"
  ],
  "indentRainbow": {
    "ignoreErrorLanguages": [
      "typescript",
      "markdown"
    ],
    "excludedLanguages": [
      "plaintext"
    ]
  },
gbrunow commented 4 years ago

I'm gonna close this for now, as is it causes an issue where the default ignoreLinepatterns won't load.