From d7fd425a7915eb7f0a5ff8ef6ebb0419d4f32cf7 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 16 Oct 2024 18:47:53 -0500 Subject: [PATCH] generalized nim formatting --- home/private_dot_config/nim/config.nims | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/private_dot_config/nim/config.nims b/home/private_dot_config/nim/config.nims index 06947f6..ce37326 100644 --- a/home/private_dot_config/nim/config.nims +++ b/home/private_dot_config/nim/config.nims @@ -42,7 +42,7 @@ proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") = echo "Running $1 .." % [cmd] exec(cmd) -task fmt, "Run nimpretty on all git-managed .nim files in the current repo": +task fmt, fmt"Run {formatter} on all git-managed .nim files in the current repo": ## Usage: nim fmt | nim fmt . let dirs = forward_args("fmt") if dirs.len == 0: