- Install the YAML plugin.
- Open
ocp-build-data
project. - Add the following config options to
.vscode/settings.json
:{ "yaml.schemas": { "/path/to/json_schemas/releases.schema.json": "/releases.yml", "/path/to/json_schemas/image_config.schema.json": "/images/*.yml", } }
- Open the .yml file that you want to edit.
- Open
ocp-build-data
project. - Go to
Preferences | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings
. - Click
+
. Add a JSON schema mapping as the following:- Name Choose a friendly name. e.g.
OCP releases
- Schema file or URL The path to
json_schemas/releases.schema.json
- Schema version Choose
JSON Schema version 7
- Click
+
, chooseAdd file
, typereleases.yml
, and pressReturn
.
- Name Choose a friendly name. e.g.
- Open
releases.yml
.
- Install Node.js.
- Install coc-nvim plugin for
vim
. - Install
coc-yaml
server extension from within vim::CocInstall coc-yaml
- Edit
coc-nvim
configuration:CocConfig
- Add the following config options:
{ "yaml.schemas": { "/path/to/json_schemas/releases.schema.json": "/releases.yml", "/path/to/json_schemas/image_config.schema.json": "/images/*.yml", } }
- Open the .yml file that you want to edit.