Skip to content

Commit

Permalink
fix(go): enable gofumpt in gopls by default (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Aug 19, 2024
1 parent 76f4f81 commit e61ce28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrocommunity/pack/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions lua/astrocommunity/pack/go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ return {
buildFlags = { "-tags", "integration" },
completeUnimported = true,
diagnosticsDelay = "500ms",
gofumpt = true,
matcher = "Fuzzy",
semanticTokens = true,
staticcheck = true,
Expand Down

0 comments on commit e61ce28

Please sign in to comment.