From 2ebfcaa4f2e85550d985eae8ed417401319ebccd Mon Sep 17 00:00:00 2001 From: Louis Michalak <73487541+netner-d@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:52:09 +0100 Subject: feat: add gleam formatter (#327) --- README.md | 1 + lua/conform/formatters/gleam.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/gleam.lua 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" }, +} -- cgit v1.2.3-70-g09d2