mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +02:00
plugins/schemastore: init
This commit is contained in:
parent
f530700ccd
commit
74a6731226
3 changed files with 258 additions and 0 deletions
93
tests/test-sources/plugins/lsp/schemastore.nix
Normal file
93
tests/test-sources/plugins/lsp/schemastore.nix
Normal file
|
@ -0,0 +1,93 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.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 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue