mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
plugins/lazy: make pluginType freeform.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user