This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-17
Channels
- # announcements (6)
- # beginners (117)
- # calva (22)
- # cider (7)
- # clara (56)
- # clj-kondo (8)
- # cljdoc (3)
- # cljfx (26)
- # clojure (58)
- # clojure-czech (2)
- # clojure-europe (20)
- # clojure-greece (1)
- # clojure-india (7)
- # clojure-nl (11)
- # clojure-uk (100)
- # clojurescript (48)
- # conjure (24)
- # cursive (117)
- # data-science (3)
- # datascript (5)
- # datomic (33)
- # emacs (29)
- # figwheel-main (3)
- # fulcro (12)
- # jobs (1)
- # malli (40)
- # parinfer (4)
- # pathom (1)
- # quil (2)
- # re-frame (17)
- # reagent (20)
- # reitit (1)
- # reveal (97)
- # ring (5)
- # shadow-cljs (11)
- # spacemacs (12)
- # sql (4)
- # tools-deps (18)
- # xtdb (25)
Looking att Nova this morning (out of curiosity, obviously a no-go for Clojure atm). What hooks does Parinfer need to do its magic? Currently reading the extensions API: https://docs.nova.app/api-reference/text-editor/
@henrik I've implemented a bunch of parinfer tools. I found out that using the "parinfer-rust" implementation is easier than others. The code for Atom is here: https://github.com/mauricioszabo/atom-parinfer-plus. Is quite simple, really
You'll just have to listen to changes on the text editor, invoke the parinfer command, then replace the results. The parameters for parinfer-rust are these: https://github.com/mauricioszabo/atom-parinfer-plus/blob/master/src/parinfer_plus/core.cljs#L26-L30.
(also, you'll send the current text on the editor as the first parameter)