lsp-setup

Solid

This skill should be used when the user asks to "set up LSP", "configure LSP", "install LSP", "enable LSP", "language server setup", "add LSP to project", "configure language server", "set up code intelligence", "validate LSP", "check LSP setup", "fix LSP", "LSP not working", or wants to enable or troubleshoot LSP-powered navigation (go-to-definition, find-references, hover, diagnostics) in Claude Code for a project.

AI & Automation 6 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
28
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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: 1. **No LSP configured** → Start from Step 1 (detect languages) 2. **Binaries missing** → Resume at Step 3 (install binaries) 3. **Plugins not installed** → Resume at Step 4 (install plugins) 4. **Plugins installed but LSP returns "No LSP server available"** → Step 5 (restart needed) 5. **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. ## Step 1: Detect Environment Determine the current environment by checking `uname -s`: - `MINGW*` or `MSYS*` → MINGW (Git Bash on Windows) - `/proc/version` contains "microsoft" → WSL - `Darwin` → macOS - Otherwise → Linux This affects install commands and PATH gotchas. Consult `references/gotchas.md` for environment-specific issues. ## Step 2: Detect Languages Scan the current project directory for language indicators us...

Details

Author
DmitriyYukhanov
Repository
DmitriyYukhanov/claude-plugins
Created
6 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category