mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
lz.n: add basic lazy.plugins option
This commit is contained in:
parent
b1a1aaba46
commit
44681a4cb5
1 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.types) enum;
|
inherit (lib.types) enum;
|
||||||
|
inherit (lib.nvim.types) lznPluginTableType;
|
||||||
in {
|
in {
|
||||||
options.vim.lazy = {
|
options.vim.lazy = {
|
||||||
enable = mkEnableOption "plugin lazy-loading" // {default = true;};
|
enable = mkEnableOption "plugin lazy-loading" // {default = true;};
|
||||||
|
@ -10,6 +11,19 @@ in {
|
||||||
default = "lz.n";
|
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"];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue