Create a local plugin for pylsp integration

This commit is contained in:
Ohad Livne 2026-03-12 14:03:36 +02:00
parent c72c019ee8
commit 6f333e34f3
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"name": "local-plugins",
"description": "Local plugin configurations",
"owner": {
"name": "Local"
},
"plugins": [
{
"name": "pylsp",
"description": "Python Language Server (pylsp) for code intelligence",
"version": "1.0.0",
"author": {
"name": "Local Configuration"
},
"source": "./plugins/pylsp",
"category": "development",
"lspServers": {
"pylsp": {
"command": "/home/agent/.local/bin/pylsp",
"args": ["--check-parent-process"],
"extensionToLanguage": {
".py": "python",
".pyi": "python"
}
}
}
}
]
}

View file

@ -0,0 +1,7 @@
{
"name": "pylsp",
"description": "Python Language Server (pylsp) for code intelligence",
"author": {
"name": "Local Configuration"
}
}

View file

@ -0,0 +1,25 @@
# pylsp Plugin for Claude Code
This plugin configures the Python Language Server (pylsp) for Claude Code.
## Features
- Go-to-definition
- Find references
- Hover information
- Code completion
- Diagnostics
## Configuration
The LSP server is configured to use `/home/agent/.local/bin/pylsp` with `--check-parent-process` to ensure proper shutdown.
## Installing Additional pylsp Plugins
You can enhance pylsp with additional plugins:
```bash
pip install pylsp-mypy # Type checking
pip install python-lsp-black # Black formatting
pip install python-lsp-ruff # Ruff linting
```