kak: Formatear Go con goimports

This commit is contained in:
Cat /dev/Nulo 2022-01-18 23:47:01 -03:00
parent d70132efec
commit 7ad941f63b

View file

@ -36,6 +36,11 @@ hook global WinSetOption filetype=zig %{
hook buffer BufWritePre .* format-buffer 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" source "%val{config}/plugins/zig.kak/rc/zig.kak"
#hook global WinSetOption filetype=zig %{ zig-auto-run buffer } #hook global WinSetOption filetype=zig %{ zig-auto-run buffer }