mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 17:15:01 +02:00
lib/modules: add applyExtraConfig
Used for - mkVimPlugin: extraConfig - mkNeovimPlugin: extraConfig - mkLsp: extraConfig - mkLsp: settings - mkExtension (telecsope): extraConfig
This commit is contained in:
parent
c7b7b6481b
commit
63cfc84abe
6 changed files with 69 additions and 14 deletions
|
@ -74,7 +74,18 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
extraConfigModule = { config, ... }: extraConfig (getPluginAttr config);
|
||||
extraConfigModule =
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
lib.nixvim.modules.applyExtraConfig {
|
||||
inherit extraConfig;
|
||||
cfg = getPluginAttr config;
|
||||
opts = getPluginAttr options;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = imports ++ [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue