plugins/schemastore: set the correct jsonls default

the JSON language server has the following [configuration structure](6fef251f8f/extensions/json-language-features/server/src/jsonServer.ts (L167-L179)):
```ts
    // The settings interface describes the server relevant settings part
    interface Settings {
        json?: {
            schemas?: JSONSchemaSettings[];
            format?: { enable?: boolean };
            validate?: { enable?: boolean };
            resultLimit?: number;
        };
        http?: {
            proxy?: string;
            proxyStrictSSL?: boolean;
        };
    }
```
So, we should be mkDefault'ing `validate.enable` instead of `validate`, as `validate` is expected to be an `Object` containing `enable` as a boolean.
This commit is contained in:
cswimr 2025-02-06 14:33:08 -06:00 committed by GitHub
parent 5024ef216f
commit a5147a36f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ lib.nixvim.plugins.mkVimPlugin {
# The plugin recommends to enable this option in its README. # The plugin recommends to enable this option in its README.
# Learn more: https://github.com/b0o/SchemaStore.nvim/issues/8 # Learn more: https://github.com/b0o/SchemaStore.nvim/issues/8
validate = mkDefault true; validate.enable = mkDefault true;
}; };
yamlls.settings = mkIf cfg.yaml.enable { yamlls.settings = mkIf cfg.yaml.enable {