From a5147a36f9d3df06fd1246cf5a089678cbf59d3a Mon Sep 17 00:00:00 2001 From: cswimr Date: Thu, 6 Feb 2025 14:33:08 -0600 Subject: [PATCH] plugins/schemastore: set the correct jsonls default the JSON language server has the following [configuration structure](https://github.com/microsoft/vscode/blob/6fef251f8f0e9f74b7adb4ed310e35eabb97afdf/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. --- plugins/by-name/schemastore/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/by-name/schemastore/default.nix b/plugins/by-name/schemastore/default.nix index a5569ea8..886e622f 100644 --- a/plugins/by-name/schemastore/default.nix +++ b/plugins/by-name/schemastore/default.nix @@ -145,7 +145,7 @@ lib.nixvim.plugins.mkVimPlugin { # The plugin recommends to enable this option in its README. # Learn more: https://github.com/b0o/SchemaStore.nvim/issues/8 - validate = mkDefault true; + validate.enable = mkDefault true; }; yamlls.settings = mkIf cfg.yaml.enable {