Skip to content

Commit 5f00c8d

Browse files
committed
lib/neovim-plugin: assert enabling a lazy loading provider
1 parent 528b8a6 commit 5f00c8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/neovim-plugin.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@
172172
assertion = (isColorscheme && colorscheme != null) || cfg.lazyLoad.settings != { };
173173
message = "You have enabled lazy loading for ${originalName} but have not provided any configuration.";
174174
}
175+
{
176+
assertion = cfg.lazyLoad.enable && (config.plugins.lz-n.enable || config.plugins.lazy.enable);
177+
message = "You have enabled lazy loading for ${originalName} but have not enabled any lazy loading plugins.";
178+
}
175179
];
176180
plugins.lz-n = lib.mkIf config.plugins.lz-n.enable {
177181
plugins = [

0 commit comments

Comments
 (0)