From 362e4ec709d241e47d6093dd4b030125ce214cfa Mon Sep 17 00:00:00 2001 From: Kim Nielsen Date: Wed, 4 Oct 2023 17:42:23 +0200 Subject: feat: gci formatter for Go (#109) --- lua/conform/formatters/gci.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/gci.lua (limited to 'lua') diff --git a/lua/conform/formatters/gci.lua b/lua/conform/formatters/gci.lua new file mode 100644 index 0000000..88293d7 --- /dev/null +++ b/lua/conform/formatters/gci.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/daixiang0/gci", + description = "GCI, a tool that controls Go package import order and makes it always deterministic.", + }, + command = "gci", + args = { "write", "--skip-generated", "--skip-vendor", "$FILENAME" }, + stdin = false, +} -- cgit v1.2.3-70-g09d2