Skip to content

Commit 7bc9bf6

Browse files
authored
README: add Zed usage config example
From: zed-industries/zed#20779 (reply in thread)
1 parent 1b2d8f3 commit 7bc9bf6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,19 @@ including setting `lsp_format_on_save` to `true`.
603603
}
604604
```
605605

606+
### Zed
607+
For `gofumpt` to be used in Zed, you need to set the `gofumpt` option in the LSP settings. This is done by providing the `"gofumpt": true` in `initialization_options`.
608+
609+
```json
610+
"lsp": {
611+
"gopls": {
612+
"initialization_options": {
613+
"gofumpt": true
614+
}
615+
}
616+
}
617+
```
618+
606619
### Roadmap
607620

608621
This tool is a place to experiment. In the long term, the features that work

0 commit comments

Comments
 (0)