mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 22:00:42 +00:00
22 lines
436 B
Nix
22 lines
436 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.vim;
|
|
in {
|
|
assertions = mkMerge [
|
|
{
|
|
assertion = cfg.kommentary.enable;
|
|
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 `programs.neovim-flake.enable` with `programs.neovim.enable`";
|
|
}
|
|
];
|
|
}
|