Compare commits
No commits in common. "2bd6942ccf3fcaf9a0dacd285b8e983b6663650d" and "75fb0f26263a2d7cccf0d6b62187f4c7606da18b" have entirely different histories.
2bd6942ccf
...
75fb0f2626
3 changed files with 4 additions and 12 deletions
|
@ -30,15 +30,12 @@ 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 = "$1 $2" % [formatter, file]
|
let cmd = "nimpretty $1" % [file]
|
||||||
echo "Running $1 .." % [cmd]
|
echo "Running $1 .." % [cmd]
|
||||||
exec(cmd)
|
exec(cmd)
|
||||||
|
|
||||||
|
@ -87,7 +84,4 @@ task lexidInc, "bump lexigraphic id":
|
||||||
else:
|
else:
|
||||||
echo "next version is: ", newVersion,"\n"
|
echo "next version is: ", newVersion,"\n"
|
||||||
|
|
||||||
task _,"_______________":
|
switch("path","$nim")
|
||||||
discard
|
|
||||||
|
|
||||||
# switch("path","$nim")
|
|
||||||
|
|
|
@ -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/" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,5 +67,3 @@ Lipofectamine
|
||||||
transcriptomic
|
transcriptomic
|
||||||
Multiviewer
|
Multiviewer
|
||||||
recipebook
|
recipebook
|
||||||
adenylated
|
|
||||||
Trypan
|
|
||||||
|
|
Loading…
Reference in a new issue