mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
Modify warnings, tests, and default settings to work with the new lsp module. Update plugins/by-name/schemastore/default.nix Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Update plugins/by-name/schemastore/default.nix Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
144 lines
2.5 KiB
Nix
144 lines
2.5 KiB
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
|
|
withYaml = {
|
|
lsp = {
|
|
servers.yamlls.enable = true;
|
|
};
|
|
|
|
plugins.schemastore = {
|
|
enable = true;
|
|
|
|
json.enable = false;
|
|
yaml = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
};
|
|
};
|
|
|
|
emptyOld = {
|
|
plugins = {
|
|
lsp = {
|
|
enable = true;
|
|
|
|
servers = {
|
|
jsonls.enable = true;
|
|
yamlls.enable = true;
|
|
};
|
|
};
|
|
|
|
schemastore.enable = true;
|
|
};
|
|
};
|
|
|
|
withJsonOld = {
|
|
plugins = {
|
|
lsp = {
|
|
enable = true;
|
|
servers.jsonls.enable = true;
|
|
};
|
|
|
|
schemastore = {
|
|
enable = true;
|
|
|
|
json = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
yaml.enable = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
withYamlOld = {
|
|
plugins = {
|
|
lsp = {
|
|
enable = true;
|
|
servers.yamlls.enable = true;
|
|
};
|
|
|
|
schemastore = {
|
|
enable = true;
|
|
|
|
json.enable = false;
|
|
yaml = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|