Skip to content

Commit

Permalink
docs: Proto Language is by extension not native (#21096)
Browse files Browse the repository at this point in the history
Fixes docs to reflect that Protobuf support is via extension.
Comment out references ProtoLS formatter.
Need to test both protols and protobuf-language-server to ensure both work.
  • Loading branch information
notpeter authored Nov 23, 2024
1 parent 2177e83 commit f30de48
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions docs/src/languages/proto.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
# Proto

Proto/proto3 (Protocol Buffers definition language) support is available natively in Zed.
Proto/proto3 (Protocol Buffers definition language) support is available through the [Proto extension](https://github.com/zed-industries/zed/tree/main/extensions/proto).

- Tree Sitter: [coder3101/tree-sitter-proto](https://github.com/coder3101/tree-sitter-proto)
- Language Server: [protols](https://github.com/coder3101/protols)
- Language Servers: [protobuf-language-server](https://github.com/lasorda/protobuf-language-server)

<!--
TBD: Clarify which language server(s) to use / Feature support.
## Setup
### Install protobuf-language-server
Install protobuf-language-server and make sure it's in your PATH:
```
go install github.com/lasorda/protobuf-language-server@latest
which protobuf-language-server
```
### Install ProtoLS
Install protols and make sure it's in your PATH:
```
cargo install protols
which protols
```
## Configuration
```json
"lsp": {
"protobuf-language-server": {
"binary": {
"path": "protols"
}
}
}
```
## Formatting
Expand Down Expand Up @@ -41,3 +76,4 @@ Or you can have zed directly invoke `clang-format` by specifying it as a [format
},
}
```
-->

0 comments on commit f30de48

Please sign in to comment.