Compare commits

..

3 commits

Author SHA1 Message Date
2bd6942ccf
more spelling 2024-09-16 11:15:38 -05:00
837c3897ba
not working anyways 2024-09-16 11:15:38 -05:00
960dc9358d
use nph? 2024-09-16 11:15:38 -05:00
3 changed files with 12 additions and 4 deletions

View file

@ -30,12 +30,15 @@ let
root = getGitRootMaybe() root = getGitRootMaybe()
(_, pkgName) = root.splitPath() (_, pkgName) = root.splitPath()
srcFile = root / "src" / (pkgName & ".nim") srcFile = root / "src" / (pkgName & ".nim")
# formatter = "nimpretty"
formatter = "nph"
proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2] let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2]
for file in srcFiles: for file in srcFiles:
# let cmd = "nph $1" % [file] # let cmd = "nph $1" % [file]
let cmd = "nimpretty $1" % [file] let cmd = "$1 $2" % [formatter, file]
echo "Running $1 .." % [cmd] echo "Running $1 .." % [cmd]
exec(cmd) exec(cmd)
@ -84,4 +87,7 @@ task lexidInc, "bump lexigraphic id":
else: else:
echo "next version is: ", newVersion,"\n" echo "next version is: ", newVersion,"\n"
switch("path","$nim") task _,"_______________":
discard
# switch("path","$nim")

View file

@ -14,7 +14,7 @@ local single_host_plugins = {
end, end,
}, },
{ "Fymyte/rasi.vim" }, { "Fymyte/rasi.vim" },
{ dir = "~/dev/github/usu-dev/usu-vim/" }, -- { dir = "~/dev/github/usu-dev/usu-vim/" },
}, },
} }

View file

@ -67,3 +67,5 @@ Lipofectamine
transcriptomic transcriptomic
Multiviewer Multiviewer
recipebook recipebook
adenylated
Trypan