plugins/lazy: make pluginType freeform.
This commit is contained in:
parent
cbd8536a05
commit
0166a4a54c
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue