vis: Formatear go con goimports
This commit is contained in:
parent
c68e7bc833
commit
f570353bf3
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ local function format(file, path)
|
||||||
fmt = "prettier --stdin-filepath "..file.path
|
fmt = "prettier --stdin-filepath "..file.path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if
|
||||||
|
win.syntax == "go"
|
||||||
|
then
|
||||||
|
fmt = "goimports"
|
||||||
|
end
|
||||||
|
|
||||||
if fmt == nil or disable_formating then
|
if fmt == nil or disable_formating then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue