Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages