mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-06 19:05:26 +02:00
lib/plugins: call sub-components with relevant args
This commit is contained in:
parent
690fc895b5
commit
787844cfe4
4 changed files with 21 additions and 23 deletions
|
@ -1,4 +1,7 @@
|
|||
{ lib }:
|
||||
{
|
||||
lib,
|
||||
utils,
|
||||
}:
|
||||
{
|
||||
name,
|
||||
maintainers,
|
||||
|
@ -56,7 +59,7 @@ let
|
|||
})
|
||||
'';
|
||||
|
||||
luaConfigAtLocation = lib.nixvim.plugins.utils.mkConfigAt configLocation cfg.luaConfig.content;
|
||||
luaConfigAtLocation = utils.mkConfigAt configLocation cfg.luaConfig.content;
|
||||
in
|
||||
{
|
||||
meta = {
|
||||
|
@ -105,7 +108,7 @@ let
|
|||
|
||||
# Apply any additional configuration added to `extraConfig`
|
||||
(lib.optionalAttrs (args ? extraConfig) (
|
||||
lib.nixvim.plugins.utils.applyExtraConfig {
|
||||
utils.applyExtraConfig {
|
||||
inherit extraConfig cfg opts;
|
||||
}
|
||||
))
|
||||
|
@ -162,7 +165,7 @@ in
|
|||
imports
|
||||
++ [
|
||||
module
|
||||
(lib.nixvim.plugins.utils.mkPluginPackageModule { inherit loc packPathName package; })
|
||||
(utils.mkPluginPackageModule { inherit loc packPathName package; })
|
||||
]
|
||||
++ lib.optional deprecateExtraOptions (
|
||||
lib.mkRenamedOptionModule (loc ++ [ "extraOptions" ]) settingsPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue