treewide: Reformat with nixfmt

This commit is contained in:
traxys 2024-05-05 19:39:35 +02:00
parent c6281260dc
commit 62f32bfc71
459 changed files with 28139 additions and 26377 deletions

View file

@ -5,9 +5,11 @@
pkgs,
...
}:
with lib; let
with lib;
let
cfg = config.plugins.mini;
in {
in
{
options.plugins.mini = {
enable = mkEnableOption "mini.nvim";
@ -15,7 +17,7 @@ in {
modules = mkOption {
type = with types; attrsOf attrs;
default = {};
default = { };
description = ''
Enable and configure the mini modules.
The keys are the names of the modules (without the `mini.` prefix).
@ -27,22 +29,18 @@ in {
n_lines = 50;
search_method = "cover_or_next";
};
surround = {};
surround = { };
};
};
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
extraPlugins = [ cfg.package ];
extraConfigLua =
concatLines
(
mapAttrsToList
(
name: config: "require('mini.${name}').setup(${helpers.toLuaObject config})"
)
cfg.modules
);
extraConfigLua = concatLines (
mapAttrsToList (
name: config: "require('mini.${name}').setup(${helpers.toLuaObject config})"
) cfg.modules
);
};
}