{
"_comment": "SPDX-License-Identifier: Apache-2.0 OR MIT — Sublime Text LSP config for noyalib-lsp",
"_install_steps": [
"1. Install the LSP package via Package Control: Cmd/Ctrl+Shift+P → 'Package Control: Install Package' → 'LSP'.",
"2. Open Preferences → Package Settings → LSP → Settings.",
"3. Merge the `clients` block below into your LSP user settings."
],
"_install_path": {
"macOS": "~/Library/Application Support/Sublime Text/Packages/User/LSP.sublime-settings",
"Linux": "~/.config/sublime-text/Packages/User/LSP.sublime-settings",
"Windows": "%APPDATA%\\Sublime Text\\Packages\\User\\LSP.sublime-settings"
},
"clients": {
"noyalib-lsp": {
"enabled": true,
"command": ["noyalib-lsp"],
"selector": "source.yaml | source.yaml-jinja2 | text.yaml.helm",
"_alt_absolute_path_if_not_on_path": [
"/Users/<you>/.cargo/bin/noyalib-lsp",
"C:\\Users\\<you>\\.cargo\\bin\\noyalib-lsp.exe"
],
"settings": {}
}
},
"_format_on_save": "Sublime's LSP package supports format-on-save via the `lsp_format_on_save` setting. Add `\"lsp_format_on_save\": true` to either the LSP global or a per-syntax YAML override to enable it.",
"_capabilities_advertised": [
"textDocument/publishDiagnostics — inline syntax errors",
"textDocument/formatting — Sublime command 'LSP: Format Document'",
"textDocument/hover — Sublime command 'LSP: Hover'"
],
"_verify": [
"Open a `.yaml` file. The Sublime status bar should show 'noyalib-lsp: Running'.",
"Trigger 'LSP: Format Document' from the Command Palette."
]
}