2023-04-02 18:58:13 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.vim;
|
|
|
|
in {
|
|
|
|
assertions = mkMerge [
|
|
|
|
{
|
|
|
|
assertion = cfg.kommentary.enable;
|
|
|
|
message = "Kommentary has been deprecated in favor";
|
|
|
|
}
|
2023-04-02 19:15:24 +02:00
|
|
|
mkIf
|
|
|
|
(config.programs.neovim-flake.enable)
|
|
|
|
{
|
|
|
|
assertion = !config.programs.neovim.enable;
|
|
|
|
message = "You cannot use neovim-flake together with vanilla neovim.";
|
|
|
|
}
|
2023-04-02 18:58:13 +02:00
|
|
|
];
|
|
|
|
}
|