I successfully have a basic Vimscript plugin sending code from a buffer to Planck that's evaluated with the output or error being sent back for display in Vim :)
I have discovered a bug in planck.core/load-string
, though. It's not honouring the namespace of code passed to it. If you type (clojure.core/load-string "(ns eg.core) (def x 1)")
into Clojure's REPL, it will define x
in eg.core
. However, if you do the same thing in Planck, x
will be defined in cljs.user
.
load-string
is really just a wrapper for load-file
so the bug may be there instead.
@mike858 Probably worth filing a ticket
Yeah.
Will do.