diff options
author | pseudometa <73286100+chrisgrieser@users.noreply.github.com> | 2023-11-24 02:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 17:47:12 -0800 |
commit | d86c186ba910d28a6266c4d6210578dca984f3e3 (patch) | |
tree | 16eba54a81bd086ba6a04bf70803345a988d5b7a | |
parent | a5df96556c4c895777bf53177a8704b9b3e884e1 (diff) |
feat: add `typos` (#214)
-rw-r--r-- | lua/conform/formatters/typos.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/conform/formatters/typos.lua b/lua/conform/formatters/typos.lua new file mode 100644 index 0000000..e6ae668 --- /dev/null +++ b/lua/conform/formatters/typos.lua @@ -0,0 +1,11 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/crate-ci/typos", + description = "Source code spell checker", + }, + command = "typos", + stdin = true, + args = { "--write-changes", "-" }, + exit_codes = { 0, 2 }, +} |