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

21 lines
423 B
Nix
Raw Normal View History

2024-05-05 16:20:05 +02:00
{
lib,
config,
pkgs,
...
}:
let
cfg = config.programs.nvim-lazy;
2024-05-18 11:07:17 +02:00
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.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 = [
(wrapNeovimLazy pkgs.neovim-unwrapped { inherit (cfg) luaRcContent lazyConfig lazyPlugins; })
];
};
}