mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
29 lines
712 B
Nix
29 lines
712 B
Nix
{
|
|
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 ];
|
|
}
|