diff options
author | z775729168 <z775729168@gmail.com> | 2023-12-04 10:38:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-03 18:38:25 -0800 |
commit | cd81d215d39b16186186a1539c71b48705bb081d (patch) | |
tree | 7052775f42ff9c4742a210202fcf2b2391923075 /lua | |
parent | e8ac7f1a9a3973ecce6942b2f26d16e65902aa70 (diff) |
feat: add autocorrect (#223)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conform/formatters/autocorrect.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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, +} |