mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 12:15:26 +02:00
treewide: use mkWarnings wherever possible
This commit is contained in:
parent
2ec6218f87
commit
60adb6c56b
17 changed files with 158 additions and 122 deletions
|
@ -16,14 +16,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings =
|
||||
lib.optional
|
||||
(
|
||||
cfg.settings ? use_trouble_qf
|
||||
&& builtins.isBool cfg.settings.use_trouble_qf
|
||||
&& cfg.settings.use_trouble_qf
|
||||
&& !config.plugins.trouble.enable
|
||||
)
|
||||
"Nixvim (plugins.glance): The `trouble` plugin is not enabled, so the `glance` plugin's `use_trouble_qf` setting has no effect.";
|
||||
warnings = lib.nixvim.mkWarnings "plugins.glance" {
|
||||
when =
|
||||
cfg.settings ? use_trouble_qf
|
||||
&& builtins.isBool cfg.settings.use_trouble_qf
|
||||
&& cfg.settings.use_trouble_qf
|
||||
&& !config.plugins.trouble.enable;
|
||||
|
||||
message = ''
|
||||
The `trouble` plugin is not enabled, so the `glance` plugin's `use_trouble_qf` setting has no effect.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue