Schema
The dash
configuration schema is published here:
https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json
Using the Schema in Neovim
Section titled “Using the Schema in Neovim”-
Install the yaml-language-server LSP
-
Follow the guide in nvim-lspconfig to set it up
-
Add the following line to the top of your configuration file:
# yaml-language-server: $schema=https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json
With the directive comment at the top of your configuration or the VS Code settings file, you can then open your configurations and edit them with support for validation. When you hover on an option in your configuration file, you’ll get a brief synopsis of the option and a link to its documentation on this site.
Using the Schema in VS Code
Section titled “Using the Schema in VS Code”You can get edit-time feedback, validation, and IntelliSense for your configurations in VS Code by following these steps:
-
Install Red Hat’s YAML extension for VS Code.
-
Open your
dash
configuration file. -
Add the following line to the top of your configuration file:
# yaml-language-server: $schema=https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json -
Instead of adding a comment to your configuration file, you could create the
.vscode/settings.json
file in yourdash
configuration folder and add this setting:{"yaml.schemas": {"https://dlvhdr.github.io/gh-dash/configuration/gh-dash/schema.json": "*.yml"}}