# claude-code-lsps
**Repository Path**: aicoder1/claude-code-lsps
## Basic Information
- **Project Name**: claude-code-lsps
- **Description**: lsp配置,主要从三个仓库整合:
1. 官方的,语言少了点:https://github.com/anthropics/claude-plugins-official.git
|
2. https://github.com/boostvolt/claude-code-lsps
|
3. https://github.com/Piebald-AI/claude-code-lsps
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-06-05
- **Last Updated**: 2026-06-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Claude Code LSPs
A collection of Language Server Protocol (LSP) plugins for [Claude Code](https://github.com/anthropics/claude-code).
## What is LSP Integration?
> [!NOTE]
> **LSP Integration:** If you're on v2.0.69 through v2.0.x, LSP integration is broken due to a race condition ([#14803](https://github.com/anthropics/claude-code/issues/14803), [#13952](https://github.com/anthropics/claude-code/issues/13952)). This has been fixed in v2.1.0+. Please upgrade to the latest version.
The Language Server Protocol provides IDE-like intelligence to Claude Code. On startup, Claude Code automatically starts LSP servers from installed plugins and exposes them to Claude in two ways:
**LSP Tool** - A builtin tool with 9 operations mapping directly to LSP commands:
| Operation | Description |
| ---------------------- | --------------------------------------------------------------- |
| `goToDefinition` | Find where a symbol is defined |
| `findReferences` | Find all references to a symbol |
| `hover` | Get hover info (docs, type info) for a symbol |
| `documentSymbol` | Get all symbols (functions, classes, variables) in a document |
| `workspaceSymbol` | Search for symbols across the entire workspace |
| `goToImplementation` | Find implementations of an interface/abstract method |
| `prepareCallHierarchy` | Get call hierarchy item at a position |
| `incomingCalls` | Find all functions/methods that call the function at a position |
| `outgoingCalls` | Find all functions/methods called by the function at a position |
**Automatic Diagnostics** - Real-time error and warning detection similar to the VS Code integration, but operating independently. These diagnostics tend to be faster and more comprehensive than the VS Code equivalent.
## Available Plugins
| Plugin | Language | Extensions | LSP |
| -------------------------------------------------- | --------------------- | ------------------------------------------- | -------------------------------------------------------------------------------- |
| [bash-lsp](./bash-lsp) | Bash/Shell | `.sh` `.bash` `.zsh` `.ksh` | [bash-language-server](https://github.com/bash-lsp/bash-language-server) |
| [clangd-lsp](./clangd-lsp) | C/C++/Objective-C | `.c` `.h` `.cpp` `.hpp` `.cc` `.cxx` `.hxx` `.m` `.mm` | [clangd](https://clangd.llvm.org/) |
| [gopls-lsp](./gopls-lsp) | Go | `.go` | [gopls](https://github.com/golang/tools/tree/master/gopls) |
| [php-lsp](./php-lsp) | PHP | `.php` `.phtml` | [Intelephense](https://github.com/bmewburn/intelephense-docs) |
| [jdtls-lsp](./jdtls-lsp) | Java | `.java` | [jdtls](https://github.com/eclipse-jdtls/eclipse.jdt.ls) |
| [kotlin-lsp](./kotlin-lsp) | Kotlin | `.kt` `.kts` | [kotlin-lsp](https://github.com/Kotlin/kotlin-lsp) |
| [lua-lsp](./lua-lsp) | Lua | `.lua` | [lua-language-server](https://github.com/LuaLS/lua-language-server) |
| [csharp-lsp](./csharp-lsp) | C# | `.cs` `.csx` | [OmniSharp](https://github.com/OmniSharp/omnisharp-roslyn) |
| [pyright-lsp](./pyright-lsp) | Python | `.py` `.pyi` | [pyright](https://github.com/microsoft/pyright) |
| [ruby-lsp](./ruby-lsp) | Ruby | `.rb` `.rake` `.gemspec` | [Solargraph](https://github.com/castwide/solargraph) |
| [swift-lsp](./swift-lsp) | Swift | `.swift` | [sourcekit-lsp](https://github.com/swiftlang/sourcekit-lsp) |
| [typescript-lsp](./typescript-lsp) | TypeScript/JavaScript | `.ts` `.tsx` `.js` `.jsx` `.mjs` `.cjs` | [vtsls](https://github.com/yioneko/vtsls) |
| [yaml-lsp](./yaml-lsp) | YAML | `.yaml` `.yml` | [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) |
## Getting Started
### 1. Add the Marketplace
```bash
claude
/plugin marketplace add https://gitlab.mysteeltech.com/mysteel-ai-public/claude-code-lsps.git
```
### 2. Install Plugins
Install individual plugins:
```bash
/plugin install clangd@claude-code-lsps
/plugin install clangd@claude-code-lsps
/plugin install gopls@claude-code-lsps
```
Or browse and install interactively:
```bash
/plugin
```
---
## Manual LSP Installation
Each plugin will attempt to auto-install its LSP server on first use. If auto-install fails, use the manual instructions below.
Bash/Shell (bash-language-server)
```bash
brew install bash-language-server
```
Or via npm:
```bash
npm install -g bash-language-server
```
C/C++/Objective-C (clangd)
```bash
brew install llvm
```
Or via Xcode Command Line Tools:
```bash
xcode-select --install
```
Supports C, C++, Objective-C (.m), and Objective-C++ (.mm) files.
C# (omnisharp)
```bash
brew install omnisharp/omnisharp-roslyn/omnisharp-mono
```
Or via dotnet:
```bash
dotnet tool install -g csharp-ls
```
Go (gopls)
```bash
go install golang.org/x/tools/gopls@latest
```
Ensure `~/go/bin` is in your PATH.
Java (jdtls)
```bash
brew install jdtls
```
Or download manually from [Eclipse JDT Language Server](http://download.eclipse.org/jdtls/snapshots/).
Requires Java 21+ runtime.
Kotlin (kotlin-lsp)
```bash
brew install JetBrains/utils/kotlin-lsp
```
Or download from [GitHub releases](https://github.com/Kotlin/kotlin-lsp/releases).
Requires Java 17+.
Lua (lua-language-server)
```bash
brew install lua-language-server
```
Or download from [GitHub releases](https://github.com/LuaLS/lua-language-server/releases).
Nix (nixd)
```bash
nix profile install nixpkgs#nixd
```
Requires Nix to be installed. See [nixos.org](https://nixos.org/download/).
OCaml (ocaml-lsp)
```bash
opam install ocaml-lsp-server
```
Requires opam to be installed:
```bash
brew install opam
opam init
```
PHP (intelephense)
```bash
npm install -g intelephense
```
Python (pyright)
```bash
pip install pyright
```
Ruby (solargraph)
```bash
gem install solargraph
```
Rust (rust-analyzer)
```bash
brew install rust-analyzer
```
Or via rustup:
```bash
rustup component add rust-analyzer
```
Swift (sourcekit-lsp)
sourcekit-lsp is bundled with Xcode. Install Xcode from the App Store:
```bash
# Verify installation
xcrun --find sourcekit-lsp
```
Or install a Swift toolchain from [swift.org/install](https://swift.org/install/).
YAML (yaml-language-server)
```bash
brew install yaml-language-server
```
Or via npm:
```bash
npm install -g yaml-language-server
```