mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
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:
parent
5024ef216f
commit
a5147a36f9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue