modules/keymaps: more verbose lua deprecation

Include the offending definition(s) in the warning.
This commit is contained in:
Matt Sturgeon 2024-05-28 19:06:48 +01:00
parent cf037458dd
commit 9b340f8bab
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -68,7 +68,10 @@ with lib;
count = length def.value;
plural = count > 1;
in
"Found ${toString count} use${optionalString plural "s"} in ${def.file}"
''
Found ${toString count} use${optionalString plural "s"} in ${def.file}:
${generators.toPretty { } def.value}
''
))
];
in