Skip to content

Commit 33ad2c7

Browse files
committed
plugins/flutter-tools: add warnings for dap integration
1 parent d9c4e15 commit 33ad2c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugins/by-name/flutter-tools/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ lib.nixvim.plugins.mkNeovimPlugin {
1818
};
1919
extraConfig = cfg: {
2020
extraPackages = [ cfg.flutterPackage ];
21+
22+
warnings =
23+
lib.optional
24+
(
25+
(cfg.settings ? debugger.enable)
26+
&& (lib.isBool cfg.settings.debugger.enable)
27+
&& cfg.settings.debugger.enable
28+
&& (!config.plugins.dap.enable)
29+
)
30+
''
31+
Nixvim (plugins.flutter-tools): You have enabled the dap integration (`settings.debugger.enable`) but `plugins.dap` is disabled.
32+
'';
2133
};
2234

2335
settingsOptions = import ./settings-options.nix lib;

0 commit comments

Comments
 (0)