go.md

 1# Go
 2
 3- Tree Sitter: [tree-sitter-go](https://github.com/tree-sitter/tree-sitter-go)
 4- Language Server: [gopls](https://github.com/golang/tools/tree/master/gopls)
 5
 6## Inlay Hints
 7
 8Zed sets the following initialization options for inlay hints:
 9
10```json
11"hints": {
12    "assignVariableTypes": true,
13    "compositeLiteralFields": true,
14    "compositeLiteralTypes": true,
15    "constantValues": true,
16    "functionTypeParameters": true,
17    "parameterNames": true,
18    "rangeVariableTypes": true
19}
20```
21
22to make the language server send back inlay hints when Zed has them enabled in the settings.
23
24Use
25```json
26"lsp": {
27    "$LANGUAGE_SERVER_NAME": {
28        "initialization_options": {
29            "hints": {
30                ....
31            }
32        }
33    }
34}
35```
36to override these settings.
37
38See https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md for more information.
39
40# Go Mod
41
42- Tree Sitter: [tree-sitter-gomod](https://github.com/camdencheek/tree-sitter-go-mod)
43- Language Server: N/A
44
45# Go Sum
46
47TODO: https://github.com/zed-industries/zed/pull/7139
48
49# Go Work
50
51- Tree Sitter:
52[tree-sitter-go-work](https://github.com/d1y/tree-sitter-go-work)
53- Language Server: N/A