From f862e4db1f8ea6c68abea3d9f801b3063bf72b02 Mon Sep 17 00:00:00 2001 From: z775729168 Date: Wed, 29 Nov 2023 11:30:56 +0800 Subject: [PATCH] feat: add autocorrect --- lua/conform/formatters/autocorrect.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/autocorrect.lua diff --git a/lua/conform/formatters/autocorrect.lua b/lua/conform/formatters/autocorrect.lua new file mode 100644 index 00000000..b12e99ff --- /dev/null +++ b/lua/conform/formatters/autocorrect.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/huacnlee/autocorrect", + description = "A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK.", + }, + command = "autocorrect", + args = { "--stdin" }, + stdin = true, +}