Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Document configuring binary path for `clangd` (#17433)

Marshall Bowers01e40928d8b9
diff --git a/docs/src/languages/cpp.md b/docs/src/languages/cpp.md
index 5660fc1f364..8ba2be78e1b 100644
--- a/docs/src/languages/cpp.md
+++ b/docs/src/languages/cpp.md
@@ -5,6 +5,21 @@ C++ support is available natively in Zed.
- Tree Sitter: [tree-sitter/tree-sitter-cpp](https://github.com/tree-sitter/tree-sitter-cpp)
- Language Server: [clangd/clangd](https://github.com/clangd/clangd)
-<--!
-TBD: Add some C++ Docs
--->
+## Binary
+
+You can configure which `clangd` binary Zed should use.
+
+To use a binary in a custom location, add the following to your `settings.json`:
+
+```json
+{
+ "lsp": {
+ "clangd": {
+ "binary": {
+ "path": "/path/to/clangd",
+ "args": []
+ }
+ }
+ }
+}
+```