lsp-server-integration

Configure and register LSP servers for language intelligence in OpenCode.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill lsp-server-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lsp-server-integration
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/lsp-server-integration
Command: npx skills add https://github.com/open-hax/opencode-skills --skill lsp-server-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add and configure Language Server Protocol (LSP) servers to provide language intelligence in OpenCode.

Core Features & Use Cases

  • Identify and install the appropriate LSP server for a target language or file type.
  • Configure server initialization options, workspace roots, and capabilities, and register the server in OpenCode's LSP config.
  • Validate diagnostics, code completion, and hover functionality across supported languages.

Quick Start

Install the LSP server for your target language, configure initialization options, and register it in OpenCode.

Frequently Asked Questions about lsp-server-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add language server protocol support for a new file type in my editor?

Configuring an LSP server involves specifying initialization options, defining workspace roots, and declaring server capabilities before registering the server in the LSP config to ensure proper language intelligence integration.

What is the process to validate language server diagnostics and code completion?

You need an LSP server when adding a new file type that requires language intelligence, or when updating and replacing existing language servers to restore diagnostics, code completion, and hover functionality.

How do I configure initialization options for an LSP server?

Configuring initialization options for an LSP server requires defining workspace roots and server capabilities in the editor configuration, ensuring the registered server correctly targets the intended language environment.

Can I update or replace an existing language server without breaking editor configuration?

You can update or replace an existing language server by installing the new server version, modifying the initialization options in the LSP config, and validating that diagnostics and code completion features remain functional.