From 4fc9dd3bbb56a0f976733b5169be58820ed5be6f Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Thu, 26 Nov 2026 01:07:25 +0100 Subject: modules/nvim: Import all the modules via mkMerge This means that we use only one `lib.mkIf cfg.enable`, so when there is no nixvim module loaded it does not error. --- modules/by-name/nv/nvim/plgs/comment-nvim/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'modules/by-name/nv/nvim/plgs/comment-nvim') diff --git a/modules/by-name/nv/nvim/plgs/comment-nvim/default.nix b/modules/by-name/nv/nvim/plgs/comment-nvim/default.nix index 68a88d32..c23cd84d 100644 --- a/modules/by-name/nv/nvim/plgs/comment-nvim/default.nix +++ b/modules/by-name/nv/nvim/plgs/comment-nvim/default.nix @@ -7,14 +7,8 @@ # # You should have received a copy of the License along with this program. # If not, see . -{ - config, - lib, - ... -}: let - cfg = config.soispha.programs.nvim; -in { - home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable { +{...}: { + home-manager.users.soispha.programs.nixvim = { plugins.comment = { enable = true; settings = { -- cgit v1.3.1