diff --git a/lua/astrocommunity/pack/go/README.md b/lua/astrocommunity/pack/go/README.md index 79f5fea3a..9e8b00bcd 100644 --- a/lua/astrocommunity/pack/go/README.md +++ b/lua/astrocommunity/pack/go/README.md @@ -6,6 +6,7 @@ This plugin pack does the following: - Adds `go` Treesitter parsers - Adds `gopls` language server + - By default it is configured to use [`gofumpt`](https://github.com/mvdan/gofumpt) for formatting - Adds the following go packages: - [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?utm_source=godoc) - [gomodifytags](https://github.com/fatih/gomodifytags) diff --git a/lua/astrocommunity/pack/go/init.lua b/lua/astrocommunity/pack/go/init.lua index 1d051ee0e..b0578f1bd 100644 --- a/lua/astrocommunity/pack/go/init.lua +++ b/lua/astrocommunity/pack/go/init.lua @@ -43,6 +43,7 @@ return { buildFlags = { "-tags", "integration" }, completeUnimported = true, diagnosticsDelay = "500ms", + gofumpt = true, matcher = "Fuzzy", semanticTokens = true, staticcheck = true,