feat: allows showing output as virtual text#11
Conversation
c823028 to
1583f30
Compare
|
UPDATE: Now it is working great! It cleans previous output when your run |
|
ok, it is almost done now... but I cant pass any options via Via opts with Lazy: {
url = "https://github.com/jubnzv/mdeval.nvim",
opts = { virt_text = true },
cmds = { "MdEval" },
},Via setup: lua require 'mdeval'.setup({})In both scenarios I get the following error |
|
@jubnzv can you give some feedback? |
|
Hey @uwla, thank you for the contribution. I’m in the middle of something, but I’ll get to it in a couple of days. |
lua/defaults.lua
Outdated
|
|
||
| M.lang_conf = lang_conf | ||
|
|
||
| M.virt_text = false |
There was a problem hiding this comment.
Please rename here and everywhere to virtual_text in order to increase readability.
There was a problem hiding this comment.
The users will also need this in the documentation and the example in README.
There was a problem hiding this comment.
@uwla How could I enable the virtual text output?
I'm trying to use your branch with the following configuration:
require 'mdeval'.setup({
virt_text=true,
require_confirmation=false,
eval_options = { },
})When I call :MdEval with a markdown file containing a JS snippet, it prints results as virt_text is not set:
Hi, this is because I set the default display to NOT be virtual_text and I was having trouble passing the option I'll push the code such that the virtual text is the default one, that way you can test it. |
|
hello, could we continue this pull request? I can help you test it. |



The virtual text works!
However, there is one problem:
Output should not be cleaned when the code block is run again or with
MdEvalClean.Let us work to get it done!