fix: attrset plugin declaration normalized (#2)

fix: infinite recursion

refacto: pluginsNormalized -> pluginPackages
This commit is contained in:
Pierrot 2024-03-20 12:24:26 +01:00 committed by GitHub
parent 6eb62734da
commit 6e8912ea4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,10 +45,19 @@
lua-version ? "5.1",
disabled-diagnostics ? [],
}: let
partitions = builtins.partition (plugin:
plugin.vimPlugin or false
|| plugin.pname or "" == "nvim-treesitter")
pluginPackages =
map (
x:
if x ? plugin
then x.plugin
else x
)
plugins;
partitions = builtins.partition (plugin:
plugin.vimPlugin
or false
|| plugin.pname or "" == "nvim-treesitter")
pluginPackages;
nvim-plugins = partitions.right;
rocks = partitions.wrong;
plugin-luadirs = builtins.map (plugin: "${plugin}/lua") nvim-plugins;