mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
31 lines
537 B
Nix
31 lines
537 B
Nix
|
{
|
||
|
lib,
|
||
|
helpers,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
pluginName,
|
||
|
sourceName,
|
||
|
defaultPackage ? pkgs.vimPlugins.${pluginName},
|
||
|
maintainers ? [ lib.maintainers.GaetanLepage ],
|
||
|
imports ? [ ],
|
||
|
...
|
||
|
}@args:
|
||
|
helpers.vim-plugin.mkVimPlugin config (
|
||
|
builtins.removeAttrs args [
|
||
|
"pluginName"
|
||
|
"sourceName"
|
||
|
]
|
||
|
// {
|
||
|
inherit defaultPackage maintainers;
|
||
|
name = pluginName;
|
||
|
|
||
|
imports = imports ++ [
|
||
|
# Register the source -> plugin name association
|
||
|
{ cmpSourcePlugins.${sourceName} = pluginName; }
|
||
|
];
|
||
|
}
|
||
|
)
|