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:
parent
9a52ac7c36
commit
1c8829975d
1 changed files with 5 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue