wuub / SublimeREPL

SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)
https://github.com/wuub/SublimeREPL
Other
2.14k stars 312 forks source link

How to integrate with another plugin? #584

Closed s-clerc closed 3 years ago

s-clerc commented 4 years ago

I'm writing a SLY plugin for ST4, and I was wondering how I should go about spawning a REPL from my plugin. My plugin will maintain the connexion to the socket and I can easily prepare a REPL object as specified, my question is then how can I intiate a new REPL and pass that object.

I see that I could simply import sublimerepl and then manually manage the REPLView myself, but I wanted to see if there was a more proper solution.

s-clerc commented 3 years ago

FYI I figured it out. My repo will be available pretty soon and I’ll link it here too.