Hello guys! Has anyone some tips for using Joker with Repl in vim/neovim?
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
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?
maybe. i'll dig into that
is prepl supported?
No.
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/
fwiw, this is the lastest by the same: https://oli.me.uk/clojure-prepl-for-tool-authors/
now i'm trying this other plugin for neovim -> conjure https://github.com/Olical/conjure
but i couldn't figure out how to make it work with Joker
anyone using vim/neovim + joker here?
@gleisonsilva there is a bit about joker and conjure in: https://oli.me.uk/getting-started-with-clojure-neovim-and-conjure-in-minutes/
@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.
ah, i see. that makes sense. thanks.
i found this: https://github.com/jebberjeb/clojure-socketrepl.nvim - but perhaps #vim might be a good place to inquire
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.
@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 🙂
Hi, @mauricio.szabo! How r u? I really need gives Atom+Chlorine a try... my love for Vim keeps holding me, yet 😉
Help me develop https://github.com/mauricioszabo/clematis, it uses the same machinery as Chlorine then 😉
oh man.. i really wish i could... maybe when i manage do get some vacation 😞
Don't you rely on unrepl a lot? Does that work with joker?
@didibus I do on Clojure, but there's a fallback for repls that don't support it. So far, Joker does not