Skip to content

Commit

Permalink
plugins/flutter-tools: add warnings for dap integration
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 14, 2025
1 parent d9c4e15 commit 33ad2c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/by-name/flutter-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ 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.
'';
};

settingsOptions = import ./settings-options.nix lib;
Expand Down

0 comments on commit 33ad2c7

Please sign in to comment.