This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-27
Channels
- # announcements (1)
- # aws (8)
- # babashka (77)
- # babashka-sci-dev (8)
- # beginners (29)
- # biff (2)
- # calva (13)
- # cljs-dev (1)
- # clojure (42)
- # clojure-europe (205)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (4)
- # clojurescript (58)
- # conjure (9)
- # data-science (7)
- # datalevin (19)
- # datomic (3)
- # emacs (7)
- # fulcro (15)
- # gratitude (8)
- # lsp (52)
- # meander (3)
- # membrane (92)
- # off-topic (12)
- # re-frame (16)
- # reagent (4)
- # reitit (15)
- # releases (1)
- # sci (30)
- # shadow-cljs (34)
- # tools-deps (5)
- # xtdb (17)
Is there a way to evaluate a form into a register? Or somehow pipe it to somewhere?
I would like to evaluate the current form into the 0
register :thinking_face:
This function does almost exactly that but it adds a comment instead: https://github.com/Olical/conjure/blob/master/fnl/conjure/eval.fnl#L240
Every conjure evaluation is put into a register, c
by default. See g:conjure#eval#result_register
I keep coming back to thinking about the Markdown (and nvim-orgmode and ascii doc) support PR that was closed out: https://github.com/Olical/conjure/issues/57 Would creating a “Proxy Client” make sense, where it can determine if your cursor is in a fenced code block, capture the language, and delegate the eval call to the client registered under the fenced code block language?
Why not change the filetype based on the region you're in? Maybe it could work...? I think Conjure's shortcuts are based on filetype :thinking_face:
I was wondering that, but that messes with other things like LSP for lintings and formattings
I added markdown
as a filetype for Conjure and set it to the clojure nREPL client, but would like something based off the code block type
I did a browse through the code, because I wondered if a b:conjure-file-type
“override” might make sense, but it didn’t look like it
What about other plugins? I don't know any but maybe there already is a plugin that does something like that? :thinking_face: