mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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
|
@ -19,17 +19,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.flutterPackage ];
|
||||
|
||||
warnings =
|
||||
lib.optional
|
||||
(
|
||||
(cfg.settings ? debugger.enable)
|
||||
&& (lib.isBool cfg.settings.debugger.enable)
|
||||
&& cfg.settings.debugger.enable
|
||||
&& (!config.plugins.dap.enable)
|
||||
)
|
||||
''
|
||||
Nixvim (plugins.flutter-tools): You have enabled the dap integration (`settings.debugger.enable`) but `plugins.dap` is disabled.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.flutter-tools" {
|
||||
when =
|
||||
(cfg.settings ? debugger.enable)
|
||||
&& (lib.isBool cfg.settings.debugger.enable)
|
||||
&& cfg.settings.debugger.enable
|
||||
&& (!config.plugins.dap.enable);
|
||||
|
||||
message = ''
|
||||
You have enabled the dap integration (`settings.debugger.enable`) but `plugins.dap` is disabled.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
settingsOptions = import ./settings-options.nix lib;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue