Skip to content

Commit 20f7ab0

Browse files
HeitorAugustoLNMattSturgeon
authored andcommitted
plugins/zk: improve picker not enabled warning
1 parent 1c88299 commit 20f7ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/by-name/zk/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
9797

9898
};
9999

100-
extraConfig = cfg: {
100+
extraConfig = cfg: opts: {
101101
warnings = lib.nixvim.mkWarnings "plugins.zk" (
102102
mapAttrsToList
103103
(picker: pluginName: {
104104
when = (cfg.settings.picker == picker) && !config.plugins.${pluginName}.enable;
105105
message = ''
106-
You have set `plugins.zk.settings.picker = "${picker}"` but `plugins.${pluginName}` is not enabled in your config.
106+
You have defined `${opts.settings}.picker = "${picker}"` but `plugins.${pluginName}` is not enabled.
107107
'';
108108
})
109109
{

0 commit comments

Comments
 (0)