mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
dev: relocate nvim/nvim-flake assertion
This commit is contained in:
parent
87f53227ce
commit
43d159c2ee
2 changed files with 6 additions and 9 deletions
|
@ -12,5 +12,11 @@ in {
|
||||||
assertion = cfg.kommentary.enable;
|
assertion = cfg.kommentary.enable;
|
||||||
message = "Kommentary has been deprecated in favor";
|
message = "Kommentary has been deprecated in favor";
|
||||||
}
|
}
|
||||||
|
mkIf
|
||||||
|
(config.programs.neovim-flake.enable)
|
||||||
|
{
|
||||||
|
assertion = !config.programs.neovim.enable;
|
||||||
|
message = "You cannot use neovim-flake together with vanilla neovim.";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,13 +46,4 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [set.neovim];
|
home.packages = [set.neovim];
|
||||||
};
|
};
|
||||||
|
|
||||||
assertions = mkMerge [
|
|
||||||
mkIf
|
|
||||||
(config.programs.neovim-flake.enable)
|
|
||||||
{
|
|
||||||
assertion = !config.programs.neovim.enable;
|
|
||||||
message = "You cannot use neovim-flake together with vanilla neovim.";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue