lib: add applyPrefixToAttrs

This commit is contained in:
Gaetan Lepage 2024-12-17 21:18:57 +01:00 committed by nix-infra-bot
parent e24e40e5f1
commit 1d50fa4f63
4 changed files with 30 additions and 1 deletions

View file

@ -113,7 +113,7 @@
extraPlugins = extraPlugins ++ [
(cfg.packageDecorator cfg.package)
];
globals = lib.mapAttrs' (n: lib.nameValuePair (globalPrefix + n)) (cfg.settings or { });
globals = lib.nixvim.applyPrefixToAttrs globalPrefix (cfg.settings or { });
}
(lib.optionalAttrs (isColorscheme && (colorscheme != null)) {
colorscheme = lib.mkDefault colorscheme;