mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue