Skip to content

Commit 4275907

Browse files
committed
docs: tweak lsp.mdx
1 parent 6097d6a commit 4275907

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

  • packages/web/src/content/docs

packages/web/src/content/docs/lsp.mdx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,6 @@ You can disable automatic LSP server downloads by setting the `OPENCODE_DISABLE_
5151

5252
---
5353

54-
## LLM Tool (Experimental)
55-
56-
OpenCode includes an experimental built-in tool named `lsp` that lets the LLM query your LSP servers for code navigation and symbol information.
57-
58-
To enable it, set `OPENCODE_EXPERIMENTAL_LSP_TOOL=true` (or `OPENCODE_EXPERIMENTAL=true` to enable all experimental features).
59-
60-
Once enabled, you can still disable it via your `tools` config:
61-
62-
```json title="opencode.json"
63-
{
64-
"$schema": "https://opencode.ai/config.json",
65-
"tools": {
66-
"lsp": false
67-
}
68-
}
69-
```
70-
71-
Example prompts:
72-
73-
- "Use the lsp tool to go to definition of `createServer` in `src/server.ts` at line 12, character 5."
74-
- "Use lsp hover on `User` in `src/models/user.ts` at line 20, character 10."
75-
76-
:::note
77-
The `lsp` tool only works when an LSP server is available for the file type.
78-
:::
79-
80-
---
81-
8254
## How It Works
8355

8456
When opencode opens a file, it:

0 commit comments

Comments
 (0)