Skip to content

Commit

Permalink
feat: add goimports formatter (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
231tr0n authored Dec 10, 2024
1 parent f8c86a7 commit 5bfccbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- [ ] [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt)
- [x] [gofmt](https://pkg.go.dev/cmd/gofmt)
- [x] [gofumpt](https://pkg.go.dev/mvdan.cc/gofumpt)
- [ ] [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
- [x] [golines](https://pkg.go.dev/github.com/segmentio/golines)
- [ ] [google-java-format](https://github.com/google/google-java-format)
- [ ] [isort](https://github.com/PyCQA/isort)
Expand Down
5 changes: 5 additions & 0 deletions lua/guard-collection/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,9 @@ M.jq = {
stdin = true,
}

M.goimports = {
cmd = 'goimports',
stdin = true,
}

return M

0 comments on commit 5bfccbc

Please sign in to comment.