Olical / conjure

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile, Python and more!)
https://conjure.oli.me.uk
The Unlicense
1.75k stars 109 forks source link

Evaluate code from markdown fenced blocks #592

Open adigitoleo opened 1 month ago

adigitoleo commented 1 month ago

Hello,

I'm just discovering this plugin. It looks very nice, but I would really love to have the ability to run e.g. :ConjureEval in a fenced markdown code block and have it 1) detect the language and 2) run the code snippet in the appropriate REPL. I saw #57 but that didn't seem to be discussing (1), and is also closed and a few years old. I wonder if this is something that is on the radar or if I should just try mdeval for that.

Cheers

thecontinium commented 1 month ago

This works well https://github.com/AckslD/nvim-FeMaco.lua

adigitoleo commented 1 month ago

This works well https://github.com/AckslD/nvim-FeMaco.lua

Had a quick look but from what I understand that one is about editing the fenced blocks (with proper LSP diagnostics completion, still very useful thanks) but I'm asking here about evaluating the code blocks (and getting the output). So far mdeval is doing what I want but I just wondered if this plugin would consider adding that functionality (it also seems focused on code evaluation/live exploration)

thecontinium commented 1 month ago

Ah. I misunderstood.

Conjure starts up default repl for the languages it supports.

Femaco does have a post open function so you could conjure evaluate buffer there ?