From f570353bf31d331982f26b24ed80aeaa892cdb59 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 30 Apr 2022 23:08:33 -0300 Subject: [PATCH] vis: Formatear go con goimports --- .config/vis/visrc.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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