From 0de46481ac89b82e65f9614b9dcdccfc5aff1627 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 13 Feb 2024 15:03:28 +0100 Subject: [PATCH] helpers/vim-plugin/mkVimPlugin: add namespace option --- lib/vim-plugin.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vim-plugin.nix b/lib/vim-plugin.nix index c577985b..bf1464b2 100644 --- a/lib/vim-plugin.nix +++ b/lib/vim-plugin.nix @@ -5,6 +5,7 @@ with lib; { mkVimPlugin = config: { name, + namespace ? "plugins", maintainers ? [], # options description ? null, @@ -18,7 +19,7 @@ with lib; { extraPlugins ? [], extraPackages ? [], }: let - cfg = config.plugins.${name}; + cfg = config.${namespace}.${name}; # TODO support nested options! pluginOptions = @@ -74,7 +75,7 @@ with lib; { }; in { meta.maintainers = maintainers; - options.plugins.${name} = + options.${namespace}.${name} = { enable = mkEnableOption ( if description == null