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 ? [],
}: let
partitions = builtins.partition (plugin:
builtins.hasAttr "vimPlugin" plugin
&& plugin.vimPlugin
|| plugin.pname == "nvim-treesitter")
plugin.vimPlugin or false
|| plugin.pname or "" == "nvim-treesitter")
plugins;
nvim-plugins = partitions.right;
rocks = partitions.wrong;