From cd81d215d39b16186186a1539c71b48705bb081d Mon Sep 17 00:00:00 2001 From: z775729168 Date: Mon, 4 Dec 2023 10:38:25 +0800 Subject: feat: add autocorrect (#223) --- lua/conform/formatters/autocorrect.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/autocorrect.lua (limited to 'lua') diff --git a/lua/conform/formatters/autocorrect.lua b/lua/conform/formatters/autocorrect.lua new file mode 100644 index 0000000..b12e99f --- /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, +} -- cgit v1.2.3-70-g09d2