# Sublime Text

`oxyaml` is a drop-in replacement for `yaml-language-server`. Existing `yaml.*` settings (`yaml.schemas`, `yaml.format.enable`, `yaml.kubernetesCRDStore.enable`, etc.) keep working unchanged without Node.js.

> **Status:** JSON syntax is valid; Sublime Text integration is **untested** in this environment (`subl` is not installed locally).

## Prerequisites

[Install oxyaml](../../README.md#installation) and make sure `oxyaml` is on your `PATH`.
Install the [LSP](https://packagecontrol.io/packages/LSP) package from Package Control.

## Option 1: Standalone `LSP` client config (no Node.js / no `LSP-yaml`)

Open `Preferences: LSP Server Configurations` from the Command Palette (`Packages/User/LanguageServers.sublime-settings`) and add:

```json
{
  "oxyaml": {
    "enabled": true,
    "command": ["oxyaml", "--stdio"],
    "selector": "(source.yml | source.yaml) - (source.yaml.go | source.yaml.helm | source.yaml.esphome | source.yaml.pipeline.github-actions)",
    "schemes": ["file", "buffer", "res", "json-schema"],
    "settings": {}
  }
}
```

Any `yaml.*` options placed under `"settings"` use the exact same keys as `LSP-yaml` / `yaml-language-server`.

## Option 2: Override `LSP-yaml`

If you already have [LSP-yaml](https://github.com/sublimelsp/LSP-yaml) configured, open `Preferences: LSP-yaml Settings` (`Packages/User/LSP-yaml.sublime-settings`) and override `"command"` (one-line change from `["${node_bin}", "${server_path}", "--stdio"]`):

```json
{
  "command": ["oxyaml", "--stdio"]
}
```

All existing `"settings"` in `LSP-yaml.sublime-settings` continue to work unchanged.
