diff options
author | Mads Hougesen <madshougesen@gmail.com> | 2024-03-18 18:48:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 10:48:07 -0700 |
commit | f8c64b835f60a80639375500a80e8cd303d8eda6 (patch) | |
tree | 4d00dfac32b168c97137668b8560194da507b367 /lua/conform/formatters/crystal.lua | |
parent | 220988eba89a877ceffae9eb63940a0d83c762ca (diff) |
feat: support crystal tool format (#344)
Diffstat (limited to 'lua/conform/formatters/crystal.lua')
-rw-r--r-- | lua/conform/formatters/crystal.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/crystal.lua b/lua/conform/formatters/crystal.lua new file mode 100644 index 0000000..1f9e12b --- /dev/null +++ b/lua/conform/formatters/crystal.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://crystal-lang.org/", + description = "Format Crystal code.", + }, + command = "crystal", + args = { "tool", "format", "-" }, + stdin = true, +} |