treewide: use mkAssertions where possible

This commit is contained in:
Gaetan Lepage 2025-01-29 15:50:36 +01:00
parent 12e658eca8
commit ce82e5859d
14 changed files with 94 additions and 104 deletions

View file

@ -176,15 +176,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
extraConfig = {
assertions = [
{
assertion = !config.plugins.copilot-vim.enable;
message = ''
You currently have both `copilot-vim` and `copilot-lua` enabled.
Please disable one of them.
'';
}
];
assertions = lib.nixvim.mkAssertions "plugins.copilot-lua" {
assertion = !config.plugins.copilot-vim.enable;
message = ''
You currently have both `copilot-vim` and `copilot-lua` enabled.
Please disable one of them.
'';
};
};
# TODO: introduced 2025-01-07: remove after 25.05