From 9f7c78852f37126244b43e71e5158cdc3d70ad0a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 15 Mar 2024 00:26:18 +0100 Subject: [PATCH] helpers/vim-plugin/mkVimPlugin: simplify code --- lib/vim-plugin.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/vim-plugin.nix b/lib/vim-plugin.nix index 04d62305..bf03aba2 100644 --- a/lib/vim-plugin.nix +++ b/lib/vim-plugin.nix @@ -38,10 +38,7 @@ with lib; { cfg = config.${namespace}.${name}; - globals = - if (hasAttr "settings" cfg) && (cfg.settings != null) - then cfg.settings - else {}; + globals = cfg.settings or {}; # does this evaluate package? packageOption =