Create a local plugin for pylsp integration
This commit is contained in:
parent
c72c019ee8
commit
6f333e34f3
3 changed files with 62 additions and 0 deletions
30
.claude/local-marketplace/.claude-plugin/marketplace.json
Normal file
30
.claude/local-marketplace/.claude-plugin/marketplace.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"name": "pylsp",
|
||||||
|
"description": "Python Language Server (pylsp) for code intelligence",
|
||||||
|
"author": {
|
||||||
|
"name": "Local Configuration"
|
||||||
|
}
|
||||||
|
}
|
||||||
25
.claude/local-marketplace/plugins/pylsp/README.md
Normal file
25
.claude/local-marketplace/plugins/pylsp/README.md
Normal 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
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue