mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-01 06:42:25 +00:00
29 lines
714 B
Nix
29 lines
714 B
Nix
|
{lib, ...}: let
|
||
|
inherit (lib.options) mkEnableOption mkOption literalExpression;
|
||
|
inherit (lib.types) attrsOf submodule;
|
||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||
|
in {
|
||
|
options.vim.collections.mini-nvim = {
|
||
|
enable = mkEnableOption "mini.nvim, a collection of quality-of-life modules";
|
||
|
modules = mkOption {
|
||
|
type = attrsOf (submodule {
|
||
|
options = {
|
||
|
setupOpts = mkPluginSetupOption "mini.nvim plugin" {};
|
||
|
};
|
||
|
});
|
||
|
default = {};
|
||
|
example =
|
||
|
literalExpression
|
||
|
''
|
||
|
{
|
||
|
files = {};
|
||
|
sessions = {
|
||
|
autoread = true;
|
||
|
autowrite = true;
|
||
|
};
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|