plugins/lazy: make pluginType freeform.

This commit is contained in:
Tash 2026-04-03 14:20:14 -04:00 committed by Austin Horstman
parent cbd8536a05
commit 0166a4a54c

View file

@ -47,6 +47,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
pluginType =
with types;
either package (submodule {
freeformType = attrsOf anything;
options = {
dir = mkNullOrOption str "A directory pointing to a local plugin";
@ -177,7 +179,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
if lib.isDerivation plugin then
{ dir = "${lazyPath}/${lib.getName plugin}"; }
else
{
plugin
// {
"__unkeyed" = plugin.name;
inherit (plugin)