diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua index 8981b21..35b886b 100644 --- a/.config/vis/visrc.lua +++ b/.config/vis/visrc.lua @@ -45,6 +45,12 @@ local function format(file, path) fmt = "prettier --stdin-filepath "..file.path end + if + win.syntax == "go" + then + fmt = "goimports" + end + if fmt == nil or disable_formating then return true end