fix: attrset plugin declaration normalized (#2)
fix: infinite recursion refacto: pluginsNormalized -> pluginPackages
This commit is contained in:
parent
6eb62734da
commit
6e8912ea4f
1 changed files with 11 additions and 2 deletions
15
flake.nix
15
flake.nix
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue