lv37 / zed-v

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

Zed V

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

Installation

  1. Open Zed
  2. Press ctrl+shift+x or cmd+shift+x to open the extension menu
  3. Search for v and click on install

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:

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",
  }
]