Skip to content

Commit

Permalink
feat: add golines (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhoIsSethDaniel authored Aug 30, 2023
1 parent d6c90fb commit e1d68a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ To view configured and available formatters, as well as to see the path to the l
- [gofmt](https://pkg.go.dev/cmd/gofmt) - Formats go programs.
- [gofumpt](https://github.com/mvdan/gofumpt) - Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with.
- [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) - Updates your Go import lines, adding missing ones and removing unreferenced ones.
- [golines](https://github.com/segmentio/golines) - A golang formatter that fixes long lines
- [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier) - A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
- [isort](https://github.com/PyCQA/isort) - Python utility / library to sort imports alphabetically and automatically separate them into sections and by type.
- [jq](https://github.com/stedolan/jq) - Command-line JSON processor.
Expand Down
8 changes: 8 additions & 0 deletions lua/conform/formatters/golines.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/segmentio/golines",
description = "A golang formatter that fixes long lines",
},
command = "golines",
}

0 comments on commit e1d68a5

Please sign in to comment.