mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
28 lines
629 B
Nix
28 lines
629 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.vim;
|
|
in {
|
|
config = {
|
|
assertions = mkMerge [
|
|
{
|
|
assertion = cfg.kommentary.enable;
|
|
message = "Kommentary has been deprecated in favor of comments-nvim";
|
|
}
|
|
{
|
|
assertion = cfg.utility.colorizer.enable;
|
|
message = "config.utility.colorizer has been renamed to config.utility.ccc";
|
|
}
|
|
mkIf
|
|
(config.programs.neovim-flake.enable)
|
|
{
|
|
assertion = !config.programs.neovim.enable;
|
|
message = "You cannot use `programs.neovim-flake.enable` with `programs.neovim.enable`";
|
|
}
|
|
];
|
|
};
|
|
}
|