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",
|
lua-version ? "5.1",
|
||||||
disabled-diagnostics ? [],
|
disabled-diagnostics ? [],
|
||||||
}: let
|
}: let
|
||||||
partitions = builtins.partition (plugin:
|
pluginPackages =
|
||||||
plugin.vimPlugin or false
|
map (
|
||||||
|| plugin.pname or "" == "nvim-treesitter")
|
x:
|
||||||
|
if x ? plugin
|
||||||
|
then x.plugin
|
||||||
|
else x
|
||||||
|
)
|
||||||
plugins;
|
plugins;
|
||||||
|
partitions = builtins.partition (plugin:
|
||||||
|
plugin.vimPlugin
|
||||||
|
or false
|
||||||
|
|| plugin.pname or "" == "nvim-treesitter")
|
||||||
|
pluginPackages;
|
||||||
nvim-plugins = partitions.right;
|
nvim-plugins = partitions.right;
|
||||||
rocks = partitions.wrong;
|
rocks = partitions.wrong;
|
||||||
plugin-luadirs = builtins.map (plugin: "${plugin}/lua") nvim-plugins;
|
plugin-luadirs = builtins.map (plugin: "${plugin}/lua") nvim-plugins;
|
||||||
|
|
Loading…
Reference in a new issue