Skip to content

Commit

Permalink
Update docs on how to install clangd (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Mar 2, 2019
1 parent ca0fc71 commit b692aab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,16 @@ Then the LSP plugin should launch as configured in LSP.sublime-settings using co

### C/C++ (Clangd)<a name="clang"></a>

You will need to build from source, see [instructions](https://clang.llvm.org/extra/clangd.html)
To use clangd on Debian/Ubuntu, add the apt repositories [described here](apt.llvm.org).
After that, install with e.g. `apt install clang-tools-9`. The clangd executable
will have a version number suffix. For instance, clangd-9. You will thus have to
adjust your `"clients"` dictionary in your user preferences.

To use clangd on Mac, use Homebrew: `brew install llvm`. The clangd executable
will be present in /usr/local/Cellar/llvm/*version*/bin

To use clangd on Windows, install LLVM with the [LLVM installer](http://releases.llvm.org/download.html),
and then add C:\\Program Files\\LLVM\\bin to your %PATH%.

For any project of non-trivial size, you probably have a build system in place
to compile your source files. The compilation command passed to your compiler
Expand Down

0 comments on commit b692aab

Please sign in to comment.