From 6eb62734dae84e5f79368dfc545b3fff305df754 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Fri, 23 Feb 2024 12:47:35 +0100 Subject: [PATCH] fix: check for pname attr --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 710c7c1..9cdb44e 100644 --- a/flake.nix +++ b/flake.nix @@ -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;