Fork me on GitHub
#conjure
<
2022-09-27
>
Martynas Maciulevičius06:09:33

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

Sigve08:09:42

Every conjure evaluation is put into a register, c by default. See g:conjure#eval#result_register

🙌 1
Proctor17:09:29

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?

Martynas Maciulevičius17:09:37

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:

Proctor17:09:39

I was wondering that, but that messes with other things like LSP for lintings and formattings

Proctor17:09:45

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

Proctor17:09:07

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

Martynas Maciulevičius17:09:52

What about other plugins? I don't know any but maybe there already is a plugin that does something like that? :thinking_face: