mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
helpers/vim-plugin/mkVimPlugin: add namespace option
This commit is contained in:
parent
73d6574c01
commit
0de46481ac
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
with lib; {
|
with lib; {
|
||||||
mkVimPlugin = config: {
|
mkVimPlugin = config: {
|
||||||
name,
|
name,
|
||||||
|
namespace ? "plugins",
|
||||||
maintainers ? [],
|
maintainers ? [],
|
||||||
# options
|
# options
|
||||||
description ? null,
|
description ? null,
|
||||||
|
@ -18,7 +19,7 @@ with lib; {
|
||||||
extraPlugins ? [],
|
extraPlugins ? [],
|
||||||
extraPackages ? [],
|
extraPackages ? [],
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.${name};
|
cfg = config.${namespace}.${name};
|
||||||
|
|
||||||
# TODO support nested options!
|
# TODO support nested options!
|
||||||
pluginOptions =
|
pluginOptions =
|
||||||
|
@ -74,7 +75,7 @@ with lib; {
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
meta.maintainers = maintainers;
|
meta.maintainers = maintainers;
|
||||||
options.plugins.${name} =
|
options.${namespace}.${name} =
|
||||||
{
|
{
|
||||||
enable = mkEnableOption (
|
enable = mkEnableOption (
|
||||||
if description == null
|
if description == null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue