Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Rainbow does not apply in Go editors #3

Open
scottrabin opened this issue Apr 30, 2014 · 1 comment
Open

Rainbow does not apply in Go editors #3

scottrabin opened this issue Apr 30, 2014 · 1 comment

Comments

@scottrabin
Copy link

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
Copy link

trevor commented Sep 23, 2014

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]}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants