From 03de11a0dcf686fda58d64a895483e284dd0c5b6 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Fri, 5 Jan 2024 17:57:59 +0000 Subject: feat: add cue_fmt formatter (#265) --- lua/conform/formatters/cue_fmt.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/cue_fmt.lua (limited to 'lua/conform/formatters') diff --git a/lua/conform/formatters/cue_fmt.lua b/lua/conform/formatters/cue_fmt.lua new file mode 100644 index 0000000..e9787d6 --- /dev/null +++ b/lua/conform/formatters/cue_fmt.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://cuelang.org", + description = "Format CUE files using `cue fmt` command.", + }, + command = "cue", + args = { "fmt", "-" }, + stdin = true, +} -- cgit v1.2.3-70-g09d2