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