This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-21
Channels
- # beginners (29)
- # calva (4)
- # clerk (10)
- # clojure (23)
- # clojure-doc (10)
- # clojure-europe (2)
- # clojure-norway (5)
- # clojure-poland (1)
- # clojuredesign-podcast (3)
- # data-science (1)
- # datomic (3)
- # emacs (38)
- # fulcro (4)
- # humbleui (8)
- # hyperfiddle (36)
- # introduce-yourself (4)
- # off-topic (10)
- # portal (14)
- # reitit (6)
- # specter (6)
Hi! I was looking for a way to use Calva's Paredit for Racket, but I couldn't find a way to make Paredit commands enabled in non-.clj files: they just don't appear in Command Palette. Looking for advice 🙏
I'm by no means an expert on this, but I don't think it's possible as-is without changing the doc's language ID to clojure. It looks like calva maintains a 'mirror document' for clojure editors (presumably to track the parsing and movement positions and what-not). When I tweak a keyboard shortcut to also handle languageID being racket, and then use a keyboard shortcut, I get an error that says 'Missing mirror document!', which tracks back to an association calva makes between a VSCode document and a mirror document, which is only made if the document's languageID is clojure.
I think @U013JFLRFS8 has made a pretty spot on assessment. It wouldn’t be easy to make this work. If you tell vs code that your racket file is clojure, you might get something working, but I don’t know if even that will help.
@U013JFLRFS8 @U0ETXRFEW Thank you for the response! Changing the document languageID to Clojure works, but this way I lose Racket's LSP/etc. Will look into other paredit extensions then, thank you anyway!