mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide: use mkAssertions where possible
This commit is contained in:
parent
12e658eca8
commit
ce82e5859d
14 changed files with 94 additions and 104 deletions
|
@ -59,12 +59,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
extraConfig =
|
||||
cfg:
|
||||
lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||
message = ''Nixvim: The git-worktree telescope integration needs telescope to function as intended'';
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "plugins.git-worktree" {
|
||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||
message = ''
|
||||
You have to enable `plugins.telescope` as `enableTelescope` is activated.
|
||||
'';
|
||||
};
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue