2024-05-05 16:20:05 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.programs.nvim-lazy;
|
2024-11-28 17:20:42 +01:00
|
|
|
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
2024-05-05 16:20:05 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ ./default.nix ];
|
|
|
|
|
|
|
|
config = (lib.mkIf cfg.enable) {
|
|
|
|
_module.check = lib.mkDefault false;
|
|
|
|
home.packages = [
|
2024-11-28 22:46:13 +01:00
|
|
|
(wrapNeovimLazy cfg.package {
|
2024-11-28 22:53:41 +01:00
|
|
|
inherit (cfg) luaRcContent lazyConfig lazyPlugins vPlug;
|
2024-11-28 22:46:13 +01:00
|
|
|
})
|
2024-05-05 16:20:05 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|