Fork me on GitHub
#joker
<
2019-11-13
>
gleisonsilva00:11:44

Hello guys! Has anyone some tips for using Joker with Repl in vim/neovim?

gleisonsilva00:11:25

I've tried joker --repl localhost:3333 but when I do :connect 3333 in Neovim (vimr) it freezes up the editor and exit the repl

jcburley00:11:50

I don't know anything about Neovim/vimr, but I do know (since I implemented) that Joker is opening up a socket REPL (sREPL) there, not a network REPL (nREPL), which Joker doesn't (yet) support. Is it possible Neovim/vimr is expecting an nREPL?

gleisonsilva00:11:55

maybe. i'll dig into that

gleisonsilva00:11:21

is prepl supported?

jcburley00:11:15

I'll try to research it later; my first discovery (having never heard of a pREPL before) is this: https://www.reddit.com/r/Clojure/comments/b4b4xn/clojure_socket_prepl_cookbook/

gleisonsilva00:11:11

now i'm trying this other plugin for neovim -> conjure https://github.com/Olical/conjure

gleisonsilva00:11:30

but i couldn't figure out how to make it work with Joker

gleisonsilva00:11:55

anyone using vim/neovim + joker here?

pyrmont01:11:37

@sogaiu: That's about a workflow that involves using Joker as a linter. I think @gleisonsilva wants to be able to use Joker as his REPL. I don't think it'll work unless Joker adds pREPL support (@gleisonsilva has filed an issue asking for Conjure to support socket REPLs but I think that would introduce substantial complexity and expect it will be rejected). I think the short answer is that there's no way to do it.

sogaiu01:11:14

ah, i see. that makes sense. thanks.

sogaiu01:11:19

i found this: https://github.com/jebberjeb/clojure-socketrepl.nvim - but perhaps #vim might be a good place to inquire

gleisonsilva11:11:42

hey guys! tks for the replies. as a workaround, I'm using a :terminal running Joker Repl inside Neovim and a plugin to send the selected line/form to it... it works well for now.

👍 16
mauricio.szabo22:11:55

@gleisonsilva Conjure needs a prepl. Chlorine (for Atom) supports socket REPLS (and even have explicit support for Joker), so if you want to test it, I'll be glad to help 🙂

gleisonsilva19:11:58

Hi, @U3Y18N0UC! How r u? I really need gives Atom+Chlorine a try... my love for Vim keeps holding me, yet 😉

mauricio.szabo19:11:17

Help me develop https://github.com/mauricioszabo/clematis, it uses the same machinery as Chlorine then 😉

gleisonsilva19:11:52

oh man.. i really wish i could... maybe when i manage do get some vacation 😞

didibus15:11:24

Don't you rely on unrepl a lot? Does that work with joker?

mauricio.szabo16:11:13

@U0K064KQV I do on Clojure, but there's a fallback for repls that don't support it. So far, Joker does not