jubnzv / mdeval.nvim Goto Github PK
View Code? Open in Web Editor NEWNeovim plugin that evaluates code blocks inside documents
License: MIT License
Neovim plugin that evaluates code blocks inside documents
License: MIT License
Hello
I have a particular use case that requires a little tweak to work with this plugin. I'm using this to run SQL queries to a database. However, the only way to provide the database to connect it through a CLI option. The command is something like usql <DATABASE_URL> -f <QUERY_FILE>
. So my idea would be to have something like this:
```usql <DATABASE_URL>
SELECT * FROM table_name;
```
And in the neovim config you could have something like this:
mdeval.setup({
eval_options = {
usql = {
command = { "usql", "$$", "-f" },
exec_type = 'interpreted',
language_code = 'usql',
},
},
})
Where the "$$"
option is replaced by the first inline option.
I have already implemented this in a fork of mine here. I'm currently using it right now. I'm creating this issue just to know if this would be desirable in the main repo. If so, I'll make a PR :)
Hi, I'm the main dev of https://github.com/michaelb/sniprun.
It's not really an issue, more of a discussion (but discussion aren't enabled on your repo). Feel free to close at any time if not relevant or anything.
Just some context; Sniprun is a code-runner plugin that can execute code from the editor. It has several features such as various possible output; REPL-like mode for some languages, markdown-blocs support, auto-fetch of imports...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.