diff --git a/plugins/by-name/flutter-tools/default.nix b/plugins/by-name/flutter-tools/default.nix index 41bb456f66..8e4a34df33 100644 --- a/plugins/by-name/flutter-tools/default.nix +++ b/plugins/by-name/flutter-tools/default.nix @@ -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;