Skip to content

Commit

Permalink
Mention JSON schema (#474)
Browse files Browse the repository at this point in the history
Co-authored-by: Emily Grace Seville <[email protected]>
  • Loading branch information
EmilyGraceSeville7cf and Emily Grace Seville authored Oct 9, 2023
1 parent d68ecbf commit 9e90d2f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ Changes to the user config will only take place after closing and re-opening laz
- Linux: `~/.config/lazydocker/config.yml`
- Windows: `C:\\Users\\<User>\\AppData\\Roaming\\jesseduffield\\lazydocker\\config.yml` (I think)

JSON schema is available for `config.yml` so that IntelliSense in Visual Studio Code
(completion and error checking) is automatically enabled when the [YAML Red Hat][yaml]
extension is installed. However, note that automatic schema detection only works
if your config file is in one of the standard paths mentioned above. If you
override the path to the file, you can still make IntelliSense work by adding

```yaml
# yaml-language-server: $schema=https://json.schemastore.org/lazydocker.json
```

to the top of your config file or via [Visual Studio Code settings.json config][settings].

[yaml]: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
[settings]: https://github.com/redhat-developer/vscode-yaml#associating-a-schema-to-a-glob-pattern-via-yamlschemas

## Default:

```yml
Expand Down

0 comments on commit 9e90d2f

Please sign in to comment.