Skip to content

Commit 1c88299

Browse files
HeitorAugustoLNMattSturgeon
authored andcommitted
plugins/easy-dotnet: improve picker not enabled warning
1 parent 9a52ac7 commit 1c88299

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/by-name/easy-dotnet/default.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
3838
}
3939
'';
4040

41-
extraConfig = cfg: {
41+
extraConfig = cfg: opts: {
4242
warnings = lib.nixvim.mkWarnings "plugins.easy-dotnet" (
4343
lib.mapAttrsToList
4444
(pickerName: pluginName: {
45-
when = (cfg.settings.picker or null == pickerName) && (!config.plugins.${pluginName}.enable);
46-
message = "You have chosen to use '${pickerName}' as a picker but 'plugins.${pluginName}' is not enabled.";
45+
when = (cfg.settings.picker or null == pickerName) && !config.plugins.${pluginName}.enable;
46+
message = ''
47+
You have defined `${opts.settings}.picker = "${pickerName}"` but `plugins.${pluginName}` is not enabled.
48+
'';
4749
})
4850
{
4951
fzf = "fzf-lua";

0 commit comments

Comments
 (0)