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,8 +1,6 @@
{ lib, helpers }:
with lib;
{
lib,
helpers,
}:
with lib; {
#################################################
# CoreConfig
@ -45,53 +43,47 @@ with lib; {
value: lua function
'';
icons =
helpers.defaultNullOpts.mkAttrsOf (with types; either str (listOf str))
''
{
child_indent = "";
child_prefix = "";
collapsed = "";
expanded = "";
failed = "";
final_child_indent = " ";
final_child_prefix = "";
non_collapsible = "";
passed = "";
running = "";
running_animated = ["/" "|" "\\" "-" "/" "|" "\\" "-"];
skipped = "";
unknown = "";
watching = "";
}
''
"Icons used throughout the UI. Defaults use VSCode's codicons.";
icons = helpers.defaultNullOpts.mkAttrsOf (with types; either str (listOf str)) ''
{
child_indent = "";
child_prefix = "";
collapsed = "";
expanded = "";
failed = "";
final_child_indent = " ";
final_child_prefix = "";
non_collapsible = "";
passed = "";
running = "";
running_animated = ["/" "|" "\\" "-" "/" "|" "\\" "-"];
skipped = "";
unknown = "";
watching = "";
}
'' "Icons used throughout the UI. Defaults use VSCode's codicons.";
highlights =
helpers.defaultNullOpts.mkAttrsOf types.str
''
{
adapter_name = "NeotestAdapterName";
border = "NeotestBorder";
dir = "NeotestDir";
expand_marker = "NeotestExpandMarker";
failed = "NeotestFailed";
file = "NeotestFile";
focused = "NeotestFocused";
indent = "NeotestIndent";
marked = "NeotestMarked";
namespace = "NeotestNamespace";
passed = "NeotestPassed";
running = "NeotestRunning";
select_win = "NeotestWinSelect";
skipped = "NeotestSkipped";
target = "NeotestTarget";
test = "NeotestTest";
unknown = "NeotestUnknown";
watching = "NeotestWatching";
}
''
"";
highlights = helpers.defaultNullOpts.mkAttrsOf types.str ''
{
adapter_name = "NeotestAdapterName";
border = "NeotestBorder";
dir = "NeotestDir";
expand_marker = "NeotestExpandMarker";
failed = "NeotestFailed";
file = "NeotestFile";
focused = "NeotestFocused";
indent = "NeotestIndent";
marked = "NeotestMarked";
namespace = "NeotestNamespace";
passed = "NeotestPassed";
running = "NeotestRunning";
select_win = "NeotestWinSelect";
skipped = "NeotestSkipped";
target = "NeotestTarget";
test = "NeotestTest";
unknown = "NeotestUnknown";
watching = "NeotestWatching";
}
'' "";
floating = {
border = helpers.defaultNullOpts.mkStr "rounded" "Border style.";
@ -130,31 +122,28 @@ with lib; {
expandErrors = helpers.defaultNullOpts.mkBool true "Expand all failed positions.";
mappings =
helpers.defaultNullOpts.mkAttrsOf (with types; either str (listOf str))
''
{
attach = "a";
clear_marked = "M";
clear_target = "T";
debug = "d";
debug_marked = "D";
expand = ["<CR>" "<2-LeftMouse>"];
expand_all = "e";
jumpto = "i";
mark = "m";
next_failed = "J";
output = "o";
prev_failed = "K";
run = "r";
run_marked = "R";
short = "O";
stop = "u";
target = "t";
watch = "w";
}
''
"Buffer mappings for summary window.";
mappings = helpers.defaultNullOpts.mkAttrsOf (with types; either str (listOf str)) ''
{
attach = "a";
clear_marked = "M";
clear_target = "T";
debug = "d";
debug_marked = "D";
expand = ["<CR>" "<2-LeftMouse>"];
expand_all = "e";
jumpto = "i";
mark = "m";
next_failed = "J";
output = "o";
prev_failed = "K";
run = "r";
run_marked = "R";
short = "O";
stop = "u";
target = "t";
watch = "w";
}
'' "Buffer mappings for summary window.";
open = helpers.defaultNullOpts.mkStr "botright vsplit | vertical resize 50" ''
A command or function to open a window for the summary.
@ -203,17 +192,11 @@ with lib; {
watch = {
enabled = helpers.defaultNullOpts.mkBool true "Enable watch.";
symbol_queries =
helpers.mkNullOrOption
(
with helpers.nixvimTypes;
attrsOf (maybeRaw str)
)
''
Treesitter queries or functions to capture symbols that are used for querying the LSP
server for definitions to link files.
If it is a function then the return value should be a list of node ranges.
'';
symbol_queries = helpers.mkNullOrOption (with helpers.nixvimTypes; attrsOf (maybeRaw str)) ''
Treesitter queries or functions to capture symbols that are used for querying the LSP
server for definitions to link files.
If it is a function then the return value should be a list of node ranges.
'';
filter_path = helpers.mkNullOrLuaFn ''
`(fun(path: string, root: string): boolean)`