mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
treewide: use boolean comparison to simplify the code base
This commit is contained in:
parent
5066c71549
commit
e908e344f4
18 changed files with 29 additions and 64 deletions
|
@ -116,10 +116,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
(name: {
|
||||
assertion =
|
||||
let
|
||||
enabled = cfg.settings.integrations.${name};
|
||||
isEnabled = (isBool enabled) && enabled;
|
||||
extensionEnabled = cfg.settings.integrations.${name} == true;
|
||||
pluginEnabled = config.plugins.${name}.enable;
|
||||
in
|
||||
isEnabled -> config.plugins.${name}.enable;
|
||||
extensionEnabled -> pluginEnabled;
|
||||
|
||||
message = ''
|
||||
You have enabled the `${name}` integration, but `plugins.${name}.enable` is `false`.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue