1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-28 13:11:04 +01:00

plugins/easy-dotnet: improve picker not enabled warning

This commit is contained in:
Heitor Augusto 2025-11-24 19:00:17 -03:00 committed by Matt Sturgeon
parent 9a52ac7c36
commit 1c8829975d

View file

@ -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";