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 }