mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
helpers: add globalPrefix to mkPlugin (#284)
This commit is contained in:
parent
2550c919a5
commit
58b6c74e2f
5 changed files with 48 additions and 42 deletions
|
@ -192,6 +192,7 @@ with lib; rec {
|
|||
extraPlugins ? [],
|
||||
extraPackages ? [],
|
||||
options ? {},
|
||||
globalPrefix ? "",
|
||||
...
|
||||
}: let
|
||||
cfg = config.plugins.${name};
|
||||
|
@ -200,7 +201,7 @@ with lib; rec {
|
|||
globals =
|
||||
mapAttrs'
|
||||
(name: opt: {
|
||||
name = opt.global;
|
||||
name = globalPrefix + opt.global;
|
||||
value =
|
||||
if cfg.${name} != null
|
||||
then opt.value cfg.${name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue