diff options
author | Kim Nielsen <github@insecurity.dk> | 2023-10-04 17:42:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 08:42:23 -0700 |
commit | 362e4ec709d241e47d6093dd4b030125ce214cfa (patch) | |
tree | 25f64c88881974e70b7dc64078fceeb0178ae243 /lua/conform/formatters/gci.lua | |
parent | ce427b03b9cc428ee7a64cb77487ed19efec202d (diff) |
feat: gci formatter for Go (#109)
Diffstat (limited to 'lua/conform/formatters/gci.lua')
-rw-r--r-- | lua/conform/formatters/gci.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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, +} |