lsp-setup
Installation
SKILL.md
LSP Setup for Claude Code Projects
Set up Language Server Protocol support in Claude Code for the current project. This enables semantic code intelligence: go-to-definition, find-references, hover, document symbols, workspace symbols, diagnostics, and call hierarchy — all at ~50ms instead of 30-60s grep-based navigation.
State Detection
This skill operates as a state machine. On each invocation, detect the current state and resume from the appropriate step:
- No LSP configured → Start from Step 1 (detect languages)
- Binaries missing → Resume at Step 3 (install binaries)
- Plugins not installed → Resume at Step 4 (install plugins)
- Plugins installed but LSP returns "No LSP server available" → Step 5 (restart needed)
- LSP responds with symbols → Step 6 (validation complete, report success)
To detect state quickly: attempt an LSP documentSymbol call on any source file in the project. If it returns results, skip to validation. If "No LSP server available", check whether plugins are installed and binaries are on PATH.