From 33ad2c729dd9b629b0d49ce8ebb4b466105c315c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 15 Jan 2025 00:05:25 +0100 Subject: [PATCH] plugins/flutter-tools: add warnings for dap integration --- plugins/by-name/flutter-tools/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;