From d2afc5de7a24dcde7af13209b91d8e3b87a89661 Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Tue, 25 Jun 2024 02:34:33 +0200 Subject: feat: support grain format (#474) * feat: support grain format * fix: formatting -> formatter * refactor(grain): format with stdin/stdout --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com> --- lua/conform/formatters/grain_format.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/grain_format.lua (limited to 'lua/conform/formatters') diff --git a/lua/conform/formatters/grain_format.lua b/lua/conform/formatters/grain_format.lua new file mode 100644 index 0000000..c7a1b36 --- /dev/null +++ b/lua/conform/formatters/grain_format.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://grain-lang.org/docs/tooling/grain_cli#grain-format", + description = "Code formatter for the grain programming language.", + }, + command = "grain", + args = { "format", "$FILENAME" }, + stdin = true, +} -- cgit v1.2.3-70-g09d2