Skip to content

Commit

Permalink
feat: add gleam formatter (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
netner-d authored Mar 11, 2024
1 parent 5a15cc4 commit 2ebfcaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ You can view this list in vim with `:help conform-formatters`
- [gci](https://github.com/daixiang0/gci) - GCI, a tool that controls Go package import order and makes it always deterministic.
- [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript.
- [gersemi](https://github.com/BlankSpruce/gersemi) - A formatter to make your CMake code the real treasure.
- [gleam](https://github.com/gleam-lang/gleam) - ⭐️ A friendly language for building type-safe, scalable systems!
- [gn](https://gn.googlesource.com/gn/) - gn build system.
- [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.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/gleam.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/gleam-lang/gleam",
description = "⭐️ A friendly language for building type-safe, scalable systems!",
},
command = "gleam",
args = { "format", "--stdin" },
}

0 comments on commit 2ebfcaa

Please sign in to comment.