From 01e40928d8b9cc13c0419d1291f1ac30d1471be9 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 5 Sep 2024 13:05:09 -0400 Subject: [PATCH] docs: Document configuring binary path for `clangd` (#17433) This PR adds documentation for how to configure the binary path for `clangd`. Release Notes: - N/A --- docs/src/languages/cpp.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/src/languages/cpp.md b/docs/src/languages/cpp.md index 5660fc1f36..8ba2be78e1 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": [] + } + } + } +} +```