From 7ad941f63bf231317d8728f02cedb61e5f7eacc3 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 18 Jan 2022 23:47:01 -0300 Subject: [PATCH] kak: Formatear Go con goimports --- .config/kak/kakrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 12b1cd8..c66c9f3 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -36,6 +36,11 @@ hook global WinSetOption filetype=zig %{ hook buffer BufWritePre .* format-buffer } +hook global WinSetOption filetype=go %{ + set-option buffer formatcmd "goimports" + hook buffer BufWritePre .* format-buffer +} + source "%val{config}/plugins/zig.kak/rc/zig.kak" #hook global WinSetOption filetype=zig %{ zig-auto-run buffer }