plugins/yamlls: add settings option

This commit is contained in:
Gaetan Lepage 2024-04-30 09:24:24 +02:00 committed by Matt Sturgeon
parent 3d9e5d04a5
commit f3e2a064a1
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 22 additions and 0 deletions

View file

@ -664,6 +664,7 @@ let
name = "yamlls";
description = "yamlls for YAML";
package = pkgs.yaml-language-server;
settings = cfg: { yaml = cfg; };
}
{
name = "zls";

View file

@ -0,0 +1,21 @@
{
example = {
plugins.lsp = {
enable = true;
servers.yamlls = {
enable = true;
settings = {
hover = true;
completion = true;
validate = true;
schemaStore = {
enable = true;
url = "https://www.schemastore.org/api/json/catalog.json";
};
};
};
};
};
}