Skip to content

lv37/zed-v

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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