From bc7a7ad1d674a332555c8fc299adf194804c49ed Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 17 Jul 2024 15:23:28 +0100 Subject: [PATCH] module/outputs: use `mkIf` for `wrapRc` Implement the `wrapRc` option using `lib.mkIf` instead of using _real_ `if` branches. --- modules/top-level/output.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/top-level/output.nix b/modules/top-level/output.nix index eca831aa..90ac0a2a 100644 --- a/modules/top-level/output.nix +++ b/modules/top-level/output.nix @@ -292,6 +292,6 @@ in vim.opt.runtimepath:remove(vim.fn.stdpath('data') .. "/site") -- ~/.local/share/nvim/site ''; - extraPlugins = if config.wrapRc then [ config.filesPlugin ] else [ ]; + extraPlugins = lib.mkIf config.wrapRc [ config.filesPlugin ]; }; }