From 6e8912ea4fbfaa10797caafb1f5628fb4178b6e8 Mon Sep 17 00:00:00 2001 From: Pierrot <25549037+pierrot-lc@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:24:26 +0100 Subject: [PATCH] fix: attrset plugin declaration normalized (#2) fix: infinite recursion refacto: pluginsNormalized -> pluginPackages --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9cdb44e..79e94be 100644 --- a/flake.nix +++ b/flake.nix @@ -45,10 +45,19 @@ lua-version ? "5.1", disabled-diagnostics ? [], }: let + pluginPackages = + map ( + x: + if x ? plugin + then x.plugin + else x + ) + plugins; partitions = builtins.partition (plugin: - plugin.vimPlugin or false + plugin.vimPlugin + or false || plugin.pname or "" == "nvim-treesitter") - plugins; + pluginPackages; nvim-plugins = partitions.right; rocks = partitions.wrong; plugin-luadirs = builtins.map (plugin: "${plugin}/lua") nvim-plugins;