Skip to content

Commit 0ba41f8

Browse files
plugins/zk: improve picker not enabled warning
1 parent ac60089 commit 0ba41f8

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
@@ -98,13 +98,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
9898

9999
};
100100

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

0 commit comments

Comments
 (0)