From 1c8829975d9980d0fac0592dad2ad86fed0e971d Mon Sep 17 00:00:00 2001 From: Heitor Augusto <44377258+HeitorAugustoLN@users.noreply.github.com> Date: Mon, 24 Nov 2025 19:00:17 -0300 Subject: [PATCH] plugins/easy-dotnet: improve picker not enabled warning --- plugins/by-name/easy-dotnet/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/by-name/easy-dotnet/default.nix b/plugins/by-name/easy-dotnet/default.nix index 68d90c4d..975c1fad 100644 --- a/plugins/by-name/easy-dotnet/default.nix +++ b/plugins/by-name/easy-dotnet/default.nix @@ -38,12 +38,14 @@ lib.nixvim.plugins.mkNeovimPlugin { } ''; - extraConfig = cfg: { + extraConfig = cfg: opts: { warnings = lib.nixvim.mkWarnings "plugins.easy-dotnet" ( lib.mapAttrsToList (pickerName: pluginName: { - when = (cfg.settings.picker or null == pickerName) && (!config.plugins.${pluginName}.enable); - message = "You have chosen to use '${pickerName}' as a picker but 'plugins.${pluginName}' is not enabled."; + when = (cfg.settings.picker or null == pickerName) && !config.plugins.${pluginName}.enable; + message = '' + You have defined `${opts.settings}.picker = "${pickerName}"` but `plugins.${pluginName}` is not enabled. + ''; }) { fzf = "fzf-lua";