tinygo-zed

command module
v0.0.0-...-bd06792 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

README

tinygo-zed

tinygo-zed configures Zed's native Go language server and project tasks for a TinyGo target. TinyGo must be available on PATH.

Install

go install github.com/oxplot/tinygo-zed@latest

Configure a project

Run from the project directory:

tinygo-zed init

Choose a target when prompted. For non-interactive use:

tinygo-zed --no-input init --target pico

Open the directory in Zed, click Restricted Mode in the title bar, and trust the worktree. Zed ignores project settings until the worktree is trusted.

The command creates .zed/tinygo.json, .zed/settings.json, and .zed/tasks.json. It also creates a minimal go.mod and main.go when they do not exist.

Commands

tinygo-zed target [TARGET]     Change the target; prompts when omitted
tinygo-zed port [PORT|auto]    Change or clear the flash port
tinygo-zed sync                Refresh settings after upgrading TinyGo

The generated Zed tasks provide TinyGo build, test, size, allocation, and flash commands when supported by the selected target.

Documentation

Overview

Command tinygo-zed derives Zed's native gopls settings and project tasks from TinyGo's metadata for one target per repository.

Directories

Path Synopsis
internal
picker
Package picker provides a line-oriented, searchable terminal selector.
Package picker provides a line-oriented, searchable terminal selector.
project
Package project owns the on-disk contract generated for a TinyGo Zed project.
Package project owns the on-disk contract generated for a TinyGo Zed project.
tinygo
Package tinygo reads target and port metadata from the TinyGo command-line interface.
Package tinygo reads target and port metadata from the TinyGo command-line interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL