nvf/modules/assertions.nix

22 lines
418 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib; let
cfg = config.vim;
in {
assertions = mkMerge [
{
assertion = cfg.kommentary.enable;
2023-04-04 23:13:12 +00:00
message = "Kommentary has been deprecated in favor of comments-nvim";
}
mkIf
(config.programs.neovim-flake.enable)
{
assertion = !config.programs.neovim.enable;
message = "You cannot use neovim-flake together with vanilla neovim.";
}
];
}