neovim-flake/modules/assertions.nix

22 lines
436 B
Nix
Raw Permalink Normal View History

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