plugins/lsp: move related plugins to by-name

This commit is contained in:
Matt Sturgeon 2024-09-04 17:47:06 +01:00
parent 91c6b62881
commit 8815180c62
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
23 changed files with 0 additions and 11 deletions

View file

@ -0,0 +1,104 @@
{
empty = {
plugins = {
lsp = {
enable = true;
servers = {
jsonls.enable = true;
yamlls.enable = true;
};
};
schemastore.enable = true;
};
};
example = {
plugins = {
lsp = {
enable = true;
servers = {
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 = {
plugins = {
lsp = {
enable = true;
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 = { };
};
};
};
};
}