code-yeongyu/oh-my-openagent / packages/shared-skills/skills/lsp-setup
lsp-setup
FlaggedConfigures a language server so editor/agent tooling (diagnostics, go-to-definition, references, rename) works. Use when a project needs an LSP installed or wired, or a 'no LSP server configured' error appears.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.1 KB |
| references/bash/README.md | markdown | 2.2 KB |
| references/c-cpp/README.md | markdown | 2.5 KB |
| references/csharp/README.md | markdown | 2.5 KB |
| references/dart/README.md | markdown | 1.9 KB |
| references/elixir/README.md | markdown | 2.2 KB |
| references/go/README.md | markdown | 2.0 KB |
| references/haskell/README.md | markdown | 2.3 KB |
| references/java/README.md | markdown | 2.7 KB |
| references/julia/README.md | markdown | 2.4 KB |
| references/kotlin/README.md | markdown | 2.6 KB |
| references/lua/README.md | markdown | 2.1 KB |
| references/php/README.md | markdown | 2.0 KB |
| references/python/README.md | markdown | 3.1 KB |
| references/ruby/README.md | markdown | 2.4 KB |
| references/rust/README.md | markdown | 2.0 KB |
| references/swift/README.md | markdown | 2.3 KB |
| references/terraform/README.md | markdown | 2.2 KB |
| references/typescript/README.md | markdown | 3.3 KB |
| references/yaml/README.md | markdown | 2.4 KB |
| references/zig/README.md | markdown | 1.8 KB |
| scripts/detect-lsp.ts | script | 6.8 KB |
| scripts/lsp-server-table.ts | script | 5.4 KB |
| scripts/tsconfig.json | config | 397 B |
| scripts/verify-lsp.ts | script | 5.2 KB |
scripts/lsp-server-table.ts
View on GitHub// SOURCE OF TRUTH: packages/lsp-tools-mcp/src/lsp/server-definitions.ts
// (BUILTIN_SERVERS + LSP_INSTALL_HINTS). This is a hand-maintained snapshot of
// the primary builtin server per reference language, embedded so detect-lsp.ts
// runs standalone in any user project. Mirror command/extensions when that file
// changes.
export interface LanguageServer {
readonly language: string
readonly serverId: string
readonly command: readonly string[]
readonly extensions: readonly string[]
readonly installHint: string
}
export const LANGUAGES: readonly LanguageServer[] = [
{
language: "typescript",
serverId: "typescript",
command: ["typescript-language-server", "--stdio"],
extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts"],
installHint: "npm install -g typescript-language-server typescript",
},
{
language: "python",
serverId: "basedpyright",
command: ["basedpyright-langserver", "--stdio"],
extensions: [".py", ".pyi"],
installHint: "pip install basedpyright (or: uv tool install basedpyright)",
},
{
language: "go",
serverId: "gopls",
command: ["gopls"],
extensions: [".go"],
installHint: "go install golang.org/x/tools/gopls@latest",
},
{
language: "rust",
serverId: "rust",
command: ["rust-analyzer"],
extensions: [".rs"],
installHint: "rustup component add rust-analyzer",
},
{
language: "c-cpp",
serverId: "clangd",
command: ["clangd", "--background-index", "--clang-tidy"],
extensions: [".c", ".cpp", ".cc", ".cxx", ".c++", ".h", ".hpp", ".hh", ".hxx", ".h++"],
installHint: "macOS: brew install llvm | Linux: apt install clangd | https://clangd.llvm.org/installation",
},
{
language: "java",
serverId: "jdtls",
command: ["jdtls"],
extensions: [".java"],
installHint: "macOS: brew install jdtls | https://github.com/eclipse-jdtls/eclipse.jdt.ls",
},
{
language: "kotlin",
serverId: "kotlin-ls",
command: ["kotlin-lsp", "--stdio"],
extensions: [".kt", ".kts"],
installHint: "https://github.com/Kotlin/kotlin-lsp",
},
{
language: "csharp",
serverId: "csharp",
command: ["csharp-ls"],
extensions: [".cs"],
installHint: "dotnet tool install -g csharp-ls",
},
{
language: "razor",
serverId: "razor",
command: ["roslyn-language-server", "--stdio"],
extensions: [".razor", ".cshtml"],
installHint: "dotnet tool install -g roslyn-language-server --prerelease (see references/csharp/README.md)",
},
{
language: "swift",
serverId: "sourcekit-lsp",
command: ["sourcekit-lsp"],
extensions: [".swift", ".m", ".mm"],
installHint: "Included with Xcode (xcode-select --install) or the Swift toolchain",
},
{
language: "ruby",
serverId: "ruby-lsp",
command: ["rubocop", "--lsp"],
extensions: [".rb", ".rake", ".gemspec", ".ru"],
installHint: "gem install ruby-lsp (builtin runs `rubocop --lsp`; gem install rubocop)",
},
{
language: "php",
serverId: "php",
command: ["intelephense", "--stdio"],
extensions: [".php"],
installHint: "npm install -g intelephense",
},
{
language: "dart",
serverId: "dart",
command: ["dart", "language-server", "--lsp"],
extensions: [".dart"],
installHint: "Included with the Dart/Flutter SDK",
},
{
language: "elixir",
serverId: "elixir-ls",
command: ["elixir-ls"],
extensions: [".ex", ".exs"],
installHint: "https://github.com/elixir-lsp/elixir-ls",
},
{
language: "zig",
serverId: "zls",
command: ["zls"],
extensions: [".zig", ".zon"],
installHint: "https://github.com/zigtools/zls (match zls version to your zig version)",
},
{
language: "lua",
serverId: "lua-ls",
command: ["lua-language-server"],
extensions: [".lua"],
installHint: "macOS: brew install lua-language-server | https://github.com/LuaLS/lua-language-server",
},
{
language: "bash",
serverId: "bash",
command: ["bash-language-server", "start"],
extensions: [".sh", ".bash", ".zsh", ".ksh"],
installHint: "npm install -g bash-language-server",
},
{
language: "yaml",
serverId: "yaml-ls",
command: ["yaml-language-server", "--stdio"],
extensions: [".yaml", ".yml"],
installHint: "npm install -g yaml-language-server",
},
{
language: "terraform",
serverId: "terraform",
command: ["terraform-ls", "serve"],
extensions: [".tf", ".tfvars"],
installHint: "macOS: brew install hashicorp/tap/terraform-ls | https://github.com/hashicorp/terraform-ls",
},
{
language: "dockerfile",
serverId: "dockerfile",
command: ["docker-langserver", "--stdio"],
extensions: [".dockerfile"],
installHint: "npm install -g dockerfile-language-server-nodejs",
},
{
language: "haskell",
serverId: "haskell-language-server",
command: ["haskell-language-server-wrapper", "--lsp"],
extensions: [".hs", ".lhs"],
installHint: "ghcup install hls",
},
{
language: "julia",
serverId: "julials",
command: ["julia", "--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
extensions: [".jl"],
installHint: "julia -e 'using Pkg; Pkg.add(\"LanguageServer\")' (see references/julia/README.md)",
},
] as const
export const PROJECT_CONFIG_FILES: readonly string[] = [
".codex/lsp-client.json",
".opencode/lsp.json",
".omo/lsp.json",
".omo/lsp-client.json",
".pi/lsp-client.json",
] as const
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 469k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |