This commit is contained in:
Fran Cirka 2025-06-19 12:34:15 +01:00 committed by GitHub
commit 5c44a2f5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{
lib,
config,
options,
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "yaml-schema-detect";
packPathName = "yaml-schema-detect.nvim";
package = "yaml-schema-detect-nvim";
description = ''
A Neovim plugin that automatically detects and applies YAML schemas for your YAML files using yaml-language-server (yamlls)
'';
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "plugins.yaml-schema-detect" [
{
when = !config.plugins.which-key.enable;
message = ''
This plugin requires `plugins.which-key` to be enabled
${options.plugins.which-key.enable} = true;
'';
}
];
};
maintainers = [ lib.maintainers.FKouhai ];
}

View file

@ -0,0 +1,8 @@
{
# empty test case is not needed since having it would make the warning throw an error
# this plugin requires which-key
combine-plugins = {
plugins.which-key.enable = true;
plugins.yaml-schema-detect.enable = true;
};
}