lsp documentation needs enhancement #7831

Closed
opened 2026-02-16 18:08:24 -05:00 by yindo · 1 comment
Owner

Originally created by @pvdhagen on GitHub (Jan 28, 2026).

Originally assigned to: @jayair on GitHub.

Description

each lsp supports a configuration object, which can contain "env" and "initialization", both of them of type "object".
There is no example using env or initialization.
I tried guessing around, but was unsuccessfull at finding valid settings.
I'm not sure what "Initialization options to send to the LSP server" actually is about. Sounds vaguely like commandline options, which would be expected in command?

I wouldn't really label it as a bug, but it's not a feature request either...

https://opencode.ai/docs/lsp/

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @pvdhagen on GitHub (Jan 28, 2026). Originally assigned to: @jayair on GitHub. ### Description each lsp supports a configuration object, which can contain "env" and "initialization", both of them of type "object". There is no example using env or initialization. I tried guessing around, but was unsuccessfull at finding valid settings. I'm not sure what "Initialization options to send to the LSP server" actually is about. Sounds vaguely like commandline options, which would be expected in command? I wouldn't really label it as a bug, but it's not a feature request either... https://opencode.ai/docs/lsp/ ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugdocs labels 2026-02-16 18:08:24 -05:00
yindo closed this issue 2026-02-16 18:08:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2180: Support LSP workspace/didChangeConfiguration in addition to initializationOptions
  • #9573: Make command optional in lsp configuration
  • #8187: jdtls lsp custom config failed
  • #4003: LSP client returns MethodNotFound (-32601) for optional requests (includes working examples)
  • #6131: Pyright LSP: Virtual environment packages not resolved

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #2180: Support LSP workspace/didChangeConfiguration in addition to initializationOptions - #9573: Make command optional in lsp configuration - #8187: jdtls lsp custom config failed - #4003: LSP client returns `MethodNotFound` (-32601) for optional requests (includes working examples) - #6131: Pyright LSP: Virtual environment packages not resolved Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7831