LightTable / Rainbow

Rainbow parens implementation for Light Table
MIT License
22 stars 9 forks source link

Rainbow does not apply in Go editors #3

Open scottrabin opened 10 years ago

scottrabin commented 10 years ago

Steps:

  1. Open user.behaviors
  2. (update-in behaviors [:+ :editor] conj :lt.plugins.rainbow/rainbow-parens) ; e.g. {:+ { :editor [:lt.objs.editor/no-wrap (:lt.objs.style/set-theme "solarized") :lt.plugins.rainbow/rainbow-parens :lt.objs.editor/line-numbers]}}
  3. Reload behaviors (if not automatic)
  4. Open any .go file with nested sets of (), {}, or []

Expected: Parenthesis (etc.) should be noticeably different in color, as they are in the behaviors file (where Rainbow works as expected) Actual: There is no difference in the color of the parens, braces, or brackets

Does this plugin only work for Lisp languages? It seems like it should work for all langs; nothing in rainbow.cljs seems Clojure (and/or Lisp) specific.

trevor commented 10 years ago

I'm interested in this too. Using version 0.6.7 below.

Going by plugins/rainbow/rainbow.behaviors I'd assume something like this would work if added to user.behaviors, but it doesn't seem to:

{:+ {:editor.javascript [:lt.plugins.rainbow/rainbow-parens]
     :editor [:lt.plugins.rainbow/rainbow-parens]}}