LSP Support #164

Closed
opened 2026-02-16 17:25:30 -05:00 by yindo · 2 comments
Owner

Originally created by @Arinji2 on GitHub (Jun 20, 2025).

hiya, quick question but do we have lsp support in this? I saw #67 mention using ts-go so tried out using just the base typescript lsp

{
  "model": "google/gemini-2.5-flash",
  "lsp": {
    "typescript": {
      "disabled": false,
      "command": "typescript-language-server",
      "args": ["--stdio"]
    }
  }
}

But running opencode gives me this error
arinji@arinji-corebook:~$ opencode
Error: Config file at /home/arinji/.config/opencode/config.json is invalid
↳ Unrecognized key(s) in object: 'lsp'

Originally created by @Arinji2 on GitHub (Jun 20, 2025). hiya, quick question but do we have lsp support in this? I saw #67 mention using ts-go so tried out using just the base typescript lsp ```json { "model": "google/gemini-2.5-flash", "lsp": { "typescript": { "disabled": false, "command": "typescript-language-server", "args": ["--stdio"] } } } ``` But running opencode gives me this error arinji@arinji-corebook:~$ opencode Error: Config file at /home/arinji/.config/opencode/config.json is invalid ↳ Unrecognized key(s) in object: 'lsp'
yindo closed this issue 2026-02-16 17:25:30 -05:00
Author
Owner

@adikari commented on GitHub (Jun 20, 2025):

Here is the schema for config.json https://raw.githubusercontent.com/sst/opencode/refs/heads/dev/packages/opencode/config.schema.json

There is no lsp option in the configuration. Based on the docs https://opencode.ai/docs/ LSP is automatically supported without any configuration

@adikari commented on GitHub (Jun 20, 2025): Here is the schema for config.json https://raw.githubusercontent.com/sst/opencode/refs/heads/dev/packages/opencode/config.schema.json There is no lsp option in the configuration. Based on the docs https://opencode.ai/docs/ LSP is automatically supported without any configuration
Author
Owner

@Arinji2 commented on GitHub (Jun 20, 2025):

Oh cool, thankyou.

@Arinji2 commented on GitHub (Jun 20, 2025): Oh cool, thankyou.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#164