mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01: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;
|
||||
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 {
|
||||
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