Fork me on GitHub
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:


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

🙌 1

I keep coming back to thinking about the Markdown (and nvim-orgmode and ascii doc) support PR that was closed out: 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:


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

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: