mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/yamlls: add settings option
This commit is contained in:
parent
3d9e5d04a5
commit
f3e2a064a1
2 changed files with 22 additions and 0 deletions
|
@ -664,6 +664,7 @@ let
|
|||
name = "yamlls";
|
||||
description = "yamlls for YAML";
|
||||
package = pkgs.yaml-language-server;
|
||||
settings = cfg: { yaml = cfg; };
|
||||
}
|
||||
{
|
||||
name = "zls";
|
||||
|
|
21
tests/test-sources/plugins/lsp/yamlls.nix
Normal file
21
tests/test-sources/plugins/lsp/yamlls.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue