wrapper: fix opt plugin format

This commit is contained in:
Ching Pei Yang 2024-09-30 21:57:36 +02:00 committed by Ching Pei Yang
parent 3e48cea536
commit 96954beece
No known key found for this signature in database
GPG key ID: 062FBBCE1D0C5DD9

View file

@ -84,10 +84,7 @@
# built (or "normalized") plugins that are modified
builtStartPlugins = buildConfigPlugins vimOptions.startPlugins;
builtOptPlugins = map (package: {
plugin = package;
optional = true;
}) (buildConfigPlugins vimOptions.optPlugins);
builtOptPlugins = map (package: package // {optional = true;}) (buildConfigPlugins vimOptions.optPlugins);
# additional Lua and Python3 packages, mapped to their respective functions
# to conform to the format mnw expects. end user should