nix-community.nixvim/tests/test-sources/plugins/lsp/schemastore.nix
Matt Sturgeon 004181813f
tests/plugins/schemastore: don't check warnings
Follow up to a1a3488779

Uses new `test.checkWarnings` option.
2024-08-22 14:46:55 +01:00

119 lines
2.5 KiB
Nix

{
empty = {
# TODO: remove once json is re-enabled
test.checkWarnings = false;
plugins = {
lsp = {
enable = true;
servers = {
# TODO: re-enable when pkg is fixed and available
# https://github.com/NixOS/nixpkgs/pull/335559
# jsonls.enable = true;
yamlls.enable = true;
};
};
schemastore.enable = true;
};
};
example = {
# TODO: remove once json is re-enabled
test.checkWarnings = false;
plugins = {
lsp = {
enable = true;
servers = {
# TODO: re-enable when pkg is fixed and available
# https://github.com/NixOS/nixpkgs/pull/335559
# jsonls.enable = true;
yamlls.enable = true;
};
};
schemastore = {
enable = true;
json = {
enable = true;
settings = {
replace."package.json" = {
description = "package.json overridden";
fileMatch = [ "package.json" ];
name = "package.json";
url = "https://example.com/package.json";
};
extra = [
{
description = "My custom JSON schema";
fileMatch = "foo.json";
name = "foo.json";
url = "https://example.com/schema/foo.json";
}
{
description = "My other custom JSON schema";
fileMatch = [
"bar.json"
".baar.json"
];
name = "bar.json";
url = "https://example.com/schema/bar.json";
}
];
};
};
yaml = {
enable = true;
settings = { };
};
};
};
};
withJson = {
# TODO: remove once json is re-enabled
test.checkWarnings = false;
plugins = {
lsp = {
enable = true;
# TODO: re-enable when pkg is fixed and available
# https://github.com/NixOS/nixpkgs/pull/335559
# servers.jsonls.enable = true;
};
schemastore = {
enable = true;
json = {
enable = true;
settings = { };
};
yaml.enable = false;
};
};
};
withYaml = {
plugins = {
lsp = {
enable = true;
servers.yamlls.enable = true;
};
schemastore = {
enable = true;
json.enable = false;
yaml = {
enable = true;
settings = { };
};
};
};
};
}