Skip to content

Commit a5147a3

Browse files
authored
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.
1 parent 5024ef2 commit a5147a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/by-name/schemastore/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ lib.nixvim.plugins.mkVimPlugin {
145145

146146
# The plugin recommends to enable this option in its README.
147147
# Learn more: https://github.com/b0o/SchemaStore.nvim/issues/8
148-
validate = mkDefault true;
148+
validate.enable = mkDefault true;
149149
};
150150

151151
yamlls.settings = mkIf cfg.yaml.enable {

0 commit comments

Comments
 (0)