diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/gabrielgio/formatter.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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, |