58 lines · 1.3 KB · Markdown
RawDownload

Go

Go support is available natively in Zed.

Inlay Hints

Zed sets the following initialization options for inlay hints:

"hints": {
    "assignVariableTypes": true,
    "compositeLiteralFields": true,
    "compositeLiteralTypes": true,
    "constantValues": true,
    "functionTypeParameters": true,
    "parameterNames": true,
    "rangeVariableTypes": true
}

to make the language server send back inlay hints when Zed has them enabled in the settings.

Use

"lsp": {
    "gopls": {
        "initialization_options": {
            "hints": {
                ....
            }
        }
    }
}

to override these settings.

See gopls inlayHints documentation for more information.

Go Mod

Go Sum

Go Work

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t