lsp-setup

仓库创建 2025年12月3日最近提交 3 小时前SkillHot 收录 20 天前
▸ 精选理由

自动完成安装、写配置并回测,能快速恢复编辑器智能功能。

▸ 风险提示

可能会安装系统级依赖或修改编辑器配置,需网络与安装权限。

这个 Skill 做什么

检测项目所需并安装/配置合适的语言服务器以启用 LSP 功能。

自动检测项目需要的 Language Server 并安装、写好配置,让编辑器和工具的 diagnostics、go-to-definition、find-references 等功能能正常工作。在新项目、报错提示没有 LSP 或需要在多个服务器间选择时会用到。它会扫描项目需求、生成配置并做验证,省去手动找服务器和配置的麻烦。

▸ 展开 SKILL.md 英文原文

Configure a Language Server (LSP) for a specific language so editor/agent tooling — diagnostics, go-to-definition, find-references, rename — works. Use when you need to: configure LSP, lsp setup, set up or install a language server, fix 'no LSP server configured' / 'server not installed', choose between servers (basedpyright vs pyright vs ty vs ruff), or wire .codex/lsp-client.json / .opencode/lsp.json. 언어서버 설정. Routes by file extension to references/<language>/README.md for the exact builtin server, per-OS install commands (macOS/Linux/Windows), config snippets for both config files, initialization options, alternatives, and troubleshooting. Ships scripts: detect-lsp.ts (scan a project for languages + each server's install/config status) and verify-lsp.ts (run a real diagnostics roundtrip). Covers typescript, python, go, rust, c/c++, java, kotlin, c#/razor, swift, ruby, php, dart, elixir, zig, lua, bash, yaml, terraform, haskell, julia.

开发编程LSP配置语言服务器编辑器集成通用
6.7w
Stars
5.4k
Forks
40
仓库内 Skill
+1.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/lsp-setup/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/lsp-setup/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# LSP Setup

Configure the right Language Server for a project so the `lsp` MCP tools
(`diagnostics`, `goto_definition`, `find_references`, `symbols`, `rename`)
actually work. This skill is an index: detect what a project needs, install the
server, write the config, then verify with a real roundtrip.

The list of servers we ship as **builtin** is the source of truth in
`packages/lsp-tools-mcp/src/lsp/server-definitions.ts` (`BUILTIN_SERVERS` +
`LSP_INSTALL_HINTS`). The per-language references below mirror it.

---

## PHASE 0 — LANGUAGE GATE (run first)

Identify the language from the file extension, then **read the matching
reference before installing or configuring anything**.

| Extension
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有