From 2d94bbee48f6a887e68737ed8d27e3b193618878 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Tue, 17 Sep 2024 13:21:31 +0200 Subject: feat: Sync --- lua/gabrielgio/formatter.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/gabrielgio') diff --git a/lua/gabrielgio/formatter.lua b/lua/gabrielgio/formatter.lua index a287d8c..d06a400 100644 --- a/lua/gabrielgio/formatter.lua +++ b/lua/gabrielgio/formatter.lua @@ -1,4 +1,5 @@ local formatter = require("formatter") +local go = require("formatter.filetypes.go") formatter.setup({ filetype = { @@ -6,6 +7,7 @@ formatter.setup({ lua = { require("formatter.filetypes.lua").stylua }, fish = { require("formatter.filetypes.fish").fishindent }, javascript = { require("formatter.filetypes.javascript").prettier }, + go = { go.gofumpt, go.goimports }, }, ["*"] = { require("formatter.filetypes.any").remove_trailing_whitespace, -- cgit v1.2.3