{"repo":"jubnzv/mdeval.nvim","free":true,"listed":false,"github":"https://github.com/jubnzv/mdeval.nvim","clone":"git clone https://github.com/jubnzv/mdeval.nvim.git","description":"Neovim plugin that evaluates code blocks inside documents","language":"Lua","stars":230,"topics":["nvim","neovim","neovim-plugin","markdown","norg","vimwiki","orgmode-nvim"],"license":"MIT","category":"productivity","readme_excerpt":"mdeval.nvim This plugin allows you evaluate code blocks inside markdown, vimwiki, orgmode.nvim and norg documents. It attempts to implement the basic functionality of org-mode's evaluating code blocks feature inside Neovim. Demo Requirements This plugin requires Neovim version 0.5+. It works on Linux, MacOS and Windows (through WSL). MacOS users should make sure that they have coreutils package installed: Windows users should have installed WSL with compilers/interpreters they want use. Installation Install it with your plugin manager. Then add the following line in your init.lua : You should also enable syntax highlighting inside code blocks for your languages using the built-in functionality: Usage To use this plugin, you should move cursor inside a fenced code block with language identifier and execute the :MdEval command. mdeval.nvim will capture the results of the code block execution and inserts them in the markdown file, right after the code block. Configuration You can configure mdeval.nvim by running the mdeval.setup function. Here is an example: By default, the plugin will ask your confirmation before evaluating code. This makes sense, because code evaluation is potentially harm operation. You can disable this feature setting require confirmation option to false , or allow to execute code blocks without confirmation only for some languages, using allowed file types option, for example: allowed file types={'rust', 'haskell'} . Probably, it will be a good idea to defi","default_branch":null,"files":null,"tree":[],"storefront":"/r/jubnzv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jubnzv/mdeval.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}