fix: check for pname attr

This commit is contained in:
Marc Jakobi 2024-02-23 12:47:35 +01:00
parent e4a9896643
commit 6eb62734da

View file

@ -46,9 +46,8 @@
disabled-diagnostics ? [], disabled-diagnostics ? [],
}: let }: let
partitions = builtins.partition (plugin: partitions = builtins.partition (plugin:
builtins.hasAttr "vimPlugin" plugin plugin.vimPlugin or false
&& plugin.vimPlugin || plugin.pname or "" == "nvim-treesitter")
|| plugin.pname == "nvim-treesitter")
plugins; plugins;
nvim-plugins = partitions.right; nvim-plugins = partitions.right;
rocks = partitions.wrong; rocks = partitions.wrong;