Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@
"author": {
"name": "vnz"
}
},
{
"name": "yaml-ls",
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, and hover docs",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The description is missing diagnostics, which is a key feature of this language server and is mentioned in the README. For better accuracy and consistency with other LSP plugins in this marketplace (like terraform-ls), I suggest updating the description to include it.

Suggested change
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, and hover docs",
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, hover, and diagnostics",

"version": "1.0.0",
"source": "./plugins/yaml-ls",
"category": "development",
"author": {
"name": "vnz"
}
}
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Personal Claude Code plugin marketplace by vnz.
| `date-context` | Injects current date/time at session start to fix web search year issues |
| `terraform-ls` | Terraform language server for code intelligence (go-to-definition, hover, diagnostics) |
| `bash-ls` | Bash language server for code intelligence, diagnostics, and formatting in shell scripts |
| `yaml-ls` | YAML language server for code intelligence (go-to-definition, find-references, hover, diagnostics) |
| `dependabot` | Check for dependency updates using Dependabot CLI with auto-detection of package managers |

## Usage
Expand All @@ -33,6 +34,7 @@ After adding the marketplace, install any plugin:
/plugin install date-context@cc-plugins-vnz
/plugin install terraform-ls@cc-plugins-vnz
/plugin install bash-ls@cc-plugins-vnz
/plugin install yaml-ls@cc-plugins-vnz
/plugin install dependabot@cc-plugins-vnz
```

Expand Down
11 changes: 11 additions & 0 deletions plugins/yaml-ls/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "yaml-ls",
"version": "1.0.0",
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, and hover docs in YAML files (.yaml, .yml)",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The description is missing diagnostics, which is a key feature of this language server and is mentioned in the plugin's README. For better accuracy and consistency, I suggest updating the description to include it.

Suggested change
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, and hover docs in YAML files (.yaml, .yml)",
"description": "YAML language server (yaml-language-server) for code intelligence, go-to-definition, find-references, hover, and diagnostics in YAML files (.yaml, .yml)",

"license": "MIT",
"author": {
"name": "vnz"
},
"repository": "https://github.com/vnz/cc-plugins",
"keywords": ["yaml", "yml", "lsp", "language-server", "schema", "validation"]
}
10 changes: 10 additions & 0 deletions plugins/yaml-ls/.lsp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"yaml-language-server": {
"command": "yaml-language-server",
"args": ["--stdio"],
"extensionToLanguage": {
".yaml": "yaml",
".yml": "yaml"
}
}
}
63 changes: 63 additions & 0 deletions plugins/yaml-ls/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# yaml-ls

YAML language server plugin for Claude Code, providing code intelligence features for YAML files.

## Features

| Feature | Description |
|---------|-------------|
| **goToDefinition** | Navigate to anchor definitions |
| **findReferences** | Find all alias usages across your file |
| **hover** | Inline documentation from JSON Schema associations |
| **diagnostics** | Real-time validation and error checking |

## Supported Files

| Extension | Language ID | Description |
|-----------|-------------|-------------|
| `.yaml` | `yaml` | YAML configuration |
| `.yml` | `yaml` | YAML configuration (short extension) |

## Prerequisites

Requires [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) in your PATH.

```bash
npm install -g yaml-language-server
```

## Installation

```bash
# Add marketplace from vnz/cc-plugins (aliased as cc-plugins-vnz)
/plugin marketplace add vnz/cc-plugins

# Install plugin from the new marketplace
/plugin install yaml-ls@cc-plugins-vnz
```

Enable LSP in your Claude Code settings (`~/.claude/settings.json`):

```json
{
"env": {
"ENABLE_LSP_TOOL": "1"
}
}
```

## Troubleshooting

### Plugin not visible
Run `/plugin list` and verify the plugin appears. Try reinstalling if needed.

### LSP not working
1. Verify yaml-language-server is in your PATH: `which yaml-language-server`
2. Check that `ENABLE_LSP_TOOL=1` is set in your settings and restart Claude Code.
3. Check Claude Code logs for any `yaml-language-server` errors.

## Links

- [yaml-language-server GitHub](https://github.com/redhat-developer/yaml-language-server)
- [YAML Specification](https://yaml.org/spec/)
- [JSON Schema Store](https://www.schemastore.org/json/) (for schema associations)
Loading