nix-community.nixvim/tests/test-sources/plugins/by-name/schemastore/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

145 lines
2.5 KiB
Nix
Raw Normal View History

2024-04-30 09:24:49 +02:00
{
empty = {
lsp = {
servers = {
jsonls.enable = true;
yamlls.enable = true;
};
};
plugins.schemastore.enable = true;
};
example = {
lsp = {
servers = {
jsonls.enable = true;
yamlls.enable = true;
};
};
plugins.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 = {
lsp = {
servers.jsonls.enable = true;
};
plugins.schemastore = {
enable = true;
json = {
enable = true;
settings = { };
};
yaml.enable = false;
};
2024-04-30 09:24:49 +02:00
};
withYaml = {
lsp = {
servers.yamlls.enable = true;
};
plugins.schemastore = {
enable = true;
json.enable = false;
yaml = {
enable = true;
settings = { };
};
};
};
emptyOld = {
2024-04-30 09:24:49 +02:00
plugins = {
lsp = {
enable = true;
servers = {
2024-08-22 09:54:58 -05:00
jsonls.enable = true;
2024-04-30 09:24:49 +02:00
yamlls.enable = true;
};
};
schemastore.enable = true;
2024-04-30 09:24:49 +02:00
};
};
withJsonOld = {
2024-04-30 09:24:49 +02:00
plugins = {
lsp = {
enable = true;
2024-08-22 09:54:58 -05:00
servers.jsonls.enable = true;
2024-04-30 09:24:49 +02:00
};
schemastore = {
enable = true;
json = {
enable = true;
settings = { };
};
yaml.enable = false;
};
};
};
withYamlOld = {
2024-04-30 09:24:49 +02:00
plugins = {
lsp = {
enable = true;
servers.yamlls.enable = true;
};
schemastore = {
enable = true;
json.enable = false;
yaml = {
enable = true;
settings = { };
};
};
};
};
2024-04-30 09:24:49 +02:00
}