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