summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/gleam.lua9
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2db5336..d6fc078 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/lua/conform/formatters/gleam.lua b/lua/conform/formatters/gleam.lua
new file mode 100644
index 0000000..a03afac
--- /dev/null
+++ b/lua/conform/formatters/gleam.lua
@@ -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" },
+}