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

@ -1,21 +1,24 @@
{
makeNixvimWithModule,
pkgs,
}: let
defaultModule = {regularArg, ...}: {
extraConfigLua = ''
-- regularArg=${regularArg}
'';
};
generated = makeNixvimWithModule {
module = {
regularArg,
extraModule,
...
}: {
_module.args = {regularArg = "regularValue";};
imports = [defaultModule extraModule];
{ makeNixvimWithModule, pkgs }:
let
defaultModule =
{ regularArg, ... }:
{
extraConfigLua = ''
-- regularArg=${regularArg}
'';
};
generated = makeNixvimWithModule {
module =
{ regularArg, extraModule, ... }:
{
_module.args = {
regularArg = "regularValue";
};
imports = [
defaultModule
extraModule
];
};
extraSpecialArgs = {
extraModule = {
extraConfigLua = ''
@ -25,18 +28,16 @@
};
};
in
pkgs.runCommand "special-arg-test" {
printConfig = "${generated}/bin/nixvim-print-init";
} ''
config=$($printConfig)
if ! "$printConfig" | grep -- '-- regularArg=regularValue'; then
echo "Missing regularArg in config"
exit 1
fi
if ! "$printConfig" | grep -- '-- specialArg=specialValue'; then
echo "Missing specialArg in config"
exit 1
fi
pkgs.runCommand "special-arg-test" { printConfig = "${generated}/bin/nixvim-print-init"; } ''
config=$($printConfig)
if ! "$printConfig" | grep -- '-- regularArg=regularValue'; then
echo "Missing regularArg in config"
exit 1
fi
if ! "$printConfig" | grep -- '-- specialArg=specialValue'; then
echo "Missing specialArg in config"
exit 1
fi
touch $out
''
touch $out
''