lv37 / zed-v

V (Vlang) support for the Zed editor.
MIT License
11 stars 3 forks source link

Feature Request: Runnables #1

Closed prashanth-hegde closed 5 months ago

prashanth-hegde commented 5 months ago

Description

Zed has introduced Runnables, which display a play ⏯️ button next to main() test functions etc to enable easy running of tests and runnable code based on treesitter.

Would love to see this supported in zed-v as well. The changes are simple, just include a runnables.scm defining what treesitter components should show the buttons.

References:

I have zero experience with rust or treesitter. I looked at the code, and it will take me a while to get to the bottom of it to open a PR. So opening a feature request here - in case someone is gracious enough to add it to the repo. I have greatly enjoyed coding in V with zed. It's super-stable and helpful.

lv37 commented 5 months ago

Check out the README for how to use runnables.