lazy.nvim.nix/modules/nvim-lazy/homeManager.nix

20 lines
384 B
Nix

{
lib,
config,
pkgs,
...
}:
let
cfg = config.programs.nvim-lazy;
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
in
{
imports = [ ./default.nix ];
config = (lib.mkIf cfg.enable) {
_module.check = lib.mkDefault false;
home.packages = [
(wrapNeovimLazy pkgs.neovim-unwrapped { inherit (cfg) luaRcContent lazyConfig lazyPlugins; })
];
};
}