Skip to content

Commit

Permalink
module/outputs: use mkIf for wrapRc
Browse files Browse the repository at this point in the history
Implement the `wrapRc` option using `lib.mkIf` instead of using _real_
`if` branches.
  • Loading branch information
MattSturgeon committed Aug 20, 2024
1 parent 6975ee0 commit bc7a7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/top-level/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
};
}

0 comments on commit bc7a7ad

Please sign in to comment.