Interactive setup for YAML LSP development environment
Sets up yaml-language-server, yamllint, prettier, and yq for YAML development with LSP support in Claude Code. Use this to enable intelligent YAML editing with validation, formatting, and schema-aware features.
/plugin marketplace add zircote/yaml-lsp/plugin install yaml-lsp@zircote-lspThis command will configure your YAML development environment with yaml-language-server and essential tools.
First, verify Node.js and Python are installed:
node --version
npm --version
python3 --version
npm install -g yaml-language-server
# Validation
pip install yamllint
# Formatting
npm install -g prettier
# YAML processing
brew install yq
yaml-language-server --version
yamllint --version
prettier --version
yq --version
export ENABLE_LSP_TOOL=1
Test the LSP integration:
# Create a test file
cat > test_lsp.yaml << 'EOF'
name: Test
version: 1.0.0
features:
- validation
- formatting
EOF
# Run yamllint
yamllint test_lsp.yaml
# Run prettier
prettier --write test_lsp.yaml
# Clean up
rm test_lsp.yaml