lz.n: add basic lazy.plugins option

This commit is contained in:
Ching Pei Yang 2024-07-10 00:28:10 +02:00 committed by Pei Yang Ching
parent 3800a1c016
commit 7abd0f8626

View file

@ -1,6 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) enum;
inherit (lib.nvim.types) lznPluginTableType;
in {
options.vim.lazy = {
enable = mkEnableOption "plugin lazy-loading" // {default = true;};
@ -10,6 +11,19 @@ in {
default = "lz.n";
};
# plugins = mkOption {};
plugins = mkOption {
default = {};
type = lznPluginTableType;
description = "list of plugins to lazy load";
example = ''
{
toggleterm-nvim = {
package = "toggleterm-nvim";
after = "require('toggleterm').setup{}";
cmd = ["ToggleTerm"];
};
}
'';
};
};
}