mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +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
|
@ -37,12 +37,12 @@ let
|
|||
mkIf cfg.enable {
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.plugins.neotest.enable;
|
||||
message = "Nixvim: you have enabled `plugins.neotest.adapters.${name}` but `plugins.neotest.enable` is `false`.";
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "plugins.neotest.adapters.${name}" {
|
||||
assertion = config.plugins.neotest.enable;
|
||||
message = ''
|
||||
You have to enable `plugins.telescope` as `enableTelescope` is activated.
|
||||
'';
|
||||
};
|
||||
|
||||
warnings = lib.nixvim.mkWarnings "plugins.neotest.adapters.${name}" {
|
||||
when = !config.plugins.treesitter.enable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue