mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-02 05:20:29 +01:00
6daa541e77
## Summary
Comprehensive remediation of 146 documentation files to align with Zed's
documentation conventions and brand voice guidelines.
## Changes
### YAML Frontmatter
- Added `title` and `description` frontmatter to all docs missing it
### Settings UI Pattern
- Updated 48+ files to show Settings Editor before JSON examples
- Pattern: `Configure X in Settings ({#kb zed::OpenSettings}), or add to
your settings file:`
- Added `([how to edit](./configuring-zed.md#settings-files))` links for
JSON-only settings
### Brand Voice Fixes
- Removed exclamation points (command-palette, key-bindings, repl,
privacy-and-security, etc.)
- Simplified em dash chains to parentheticals (environment,
troubleshooting, agent-panel, etc.)
- Fixed marketing language (yarn.md intro, development/linux.md)
### Terminology Alignment
- `settings UI` -> `Settings Editor`
- `sidebar` -> specific panel names (Project Panel, Collab Panel)
- `directory` -> `folder` in non-technical contexts
- `workspace` -> `project` in non-LSP contexts
- `Command Palette` -> `command palette` (lowercase)
### Callout Standardization
- Converted various callout formats to standard `> **Note:**` pattern
## Related
Depends on conventions established in #49176.
Release Notes:
- N/A
85 lines
1.8 KiB
Markdown
85 lines
1.8 KiB
Markdown
---
|
|
title: Proto
|
|
description: "Configure Proto language support in Zed, including language servers, formatting, and debugging."
|
|
---
|
|
|
|
# Proto
|
|
|
|
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 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 [settings]
|
|
"lsp": {
|
|
"protobuf-language-server": {
|
|
"binary": {
|
|
"path": "protols"
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
## Formatting
|
|
|
|
ProtoLS supports formatting if you have `clang-format` installed.
|
|
|
|
```sh
|
|
# MacOS:
|
|
brew install clang-format
|
|
# Ubuntu
|
|
sudo apt-get install clang-format
|
|
# Fedora
|
|
sudo dnf install clang-tools-extra
|
|
```
|
|
|
|
To customize your formatting preferences, create a `.clang-format` file, e.g.:
|
|
|
|
```clang-format
|
|
IndentWidth: 4
|
|
ColumnLimit: 120
|
|
```
|
|
|
|
Or you can have zed directly invoke `clang-format` by specifying it as a [formatter](https://zed.dev/docs/reference/all-settings#formatter) in your settings:
|
|
|
|
```json [settings]
|
|
"languages": {
|
|
"Proto": {
|
|
"format_on_save": "on",
|
|
"tab_size": 4,
|
|
"formatter": {
|
|
"external": {
|
|
"command": "clang-format",
|
|
"arguments": ["-style={IndentWidth: 4, ColumnLimit: 0}"]
|
|
}
|
|
}
|
|
},
|
|
}
|
|
```
|
|
-->
|