Code Monkey home page Code Monkey logo

zed-v's Introduction

Zed V

This extension adds support for the V programming language to the Zed editor.

Language Server Support

This extension automatically tries to download v-analyzer. If the download keeps failing, you must manually install v-analyzer.

Runnables

By default runnables won't do anything as they only run appropriately tagged tasks. To use runnables, you must add one of these supported tags to your tasks:

  • v-main: Runs on the main function in a V file.
  • v-test: Runs on functions whose names start with test_

Example

Some example tasks to get you started. Place these in your tasks.json file.

[
  {
    "label": "V run main",
    "command": "v",
    "args": ["run", "$ZED_FILE"],
    "tags": ["v-main"],
    "use_new_terminal": false,
    "reveal": "always"
  },
  {
    "label": "V test",
    "command": "v",
    "args": ["test", "$ZED_DIRNAME"],
    "tags": ["v-test"],
    "use_new_terminal": false,
    "reveal": "always",
  }
]

zed-v's People

Contributors

lv37 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

avey777

zed-v's Issues

Support `go to definition`

Currently using the V plugin is already very good, thank you very much for your contribution.

The current plugin does not support go to definition, will you consider supporting it in the future?

Support V code completion

I am very excited to see the v language plugin of zed. Will it support code hints and completion of tabs in the future?

Feature Request: Runnables

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.