You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-13Lines changed: 2 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ exclude_patterns:
223
223
- "**/__pycache__/**"
224
224
```
225
225
226
-
Set `symbol_index_provider: lsp` to use a language server; it falls back to regex indexing if the LSP binary is missing. Configure `symbol_index_lsp_languages` and `symbol_index_lsp_command` to match your server (for example, `typescript-language-server --stdio` with `ts`/`tsx` language IDs).
226
+
Set `symbol_index_provider: lsp` to use a language server; it falls back to regex indexing if the LSP binary is missing. Configure `symbol_index_lsp_languages` and `symbol_index_lsp_command` to match your server (for example, `typescript-language-server --stdio` with `ts`/`tsx` language IDs). If you omit `symbol_index_lsp_command`, diffscope will try to auto-detect a server based on installed binaries and the file types in your repo.
227
227
228
228
### LSP Symbol Index Examples (All Common Languages)
229
229
@@ -300,18 +300,7 @@ symbol_index_lsp_languages:
300
300
301
301
### LSP Setup Notes (Install + Command)
302
302
303
-
Use your package manager if you already have one. These are the minimal install commands and the server command to set in `symbol_index_lsp_command`.
- Go (gopls): `go install golang.org/x/tools/gopls@latest`; command: `gopls`.
309
-
- Java (Eclipse JDT LS): use the distribution’s wrapper `bin/jdtls` with `-configuration` and `-data` arguments.
310
-
- Kotlin (Kotlin LSP): `brew install JetBrains/utils/kotlin-lsp`or use the standalone zip; command: `kotlin-lsp` (or `kotlin-lsp.sh`, see its `--help` for stdio options).
311
-
- C/C++ (clangd): install via your package manager (e.g., `brew install llvm` or `apt-get install clangd-12`); command: `clangd`.
0 commit comments