[SublimeText] Update the clangd instructions.
clangd team has contributed a docs/clangd.md for how to setup clangd in
chromium. Remove the duplicated instructions in sublime_ide.md, and
redirect to clangd.md.
Change-Id: Ic9ba9342da74eb224819fa8d369cf445cf3faecf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1555274
Auto-Submit: Haojian Wu <[email protected]>
Reviewed-by: Josh Karlin <[email protected]>
Commit-Queue: Josh Karlin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#648908}
diff --git a/docs/sublime_ide.md b/docs/sublime_ide.md
index 2526e6b3..9706386 100644
--- a/docs/sublime_ide.md
+++ b/docs/sublime_ide.md
@@ -262,7 +262,7 @@
page](https://github.com/karlinjf/ChromiumXRefs/).
-## Code Completion, Error Highlighting, Go-to-Definition, and Find References with LSP
+## Code Completion, Error Highlighting, Go-to-Definition, and Find References with LSP (clangd)
Gives Sublime Text 3 rich editing features for languages with Language Server
Protocol support. It searches the current compilation unit for definitions and
@@ -270,28 +270,15 @@
In this case, we're going to add C/C++ support.
-1. Install clangd
+1. Refer to [clangd.md](clangd.md) to install clangd and build a compilation
+ database.
- ```shell
- sudo apt-get install clangd
- ```
+1. Install the [LSP Package](https://github.com/tomv564/LSP) and enable clangd
+ support by following the [link](https://clang.llvm.org/extra/clangd/Installation.html#editor-plugins)
+ and following the instructions for Sublime Text.
-1. Build a compilation database (clangd learns how to compile chromium objects
- with this). You'll need to run this periodically to keep it up to date.
-
- ```shell
- ninja -C out -t compdb cxx > compile_commands.json
- mv compile_commands.json <path_to_src>
- ```
-
-1. Install the LSP package in sublime-text
-
-1. Open a source file in your chromium project
-
-1. Ctrl+Shift+P and select "LSP: enable language server in project" and select
- clangd
-
-To remove sublime text's auto completion and only show LSPs (recommended), set the following LSP preference:
+To remove sublime text's auto completion and only show LSPs (recommended), set
+the following LSP preference:
```json
"only_show_lsp_completions": true