From d86c186ba910d28a6266c4d6210578dca984f3e3 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:47:12 +0100 Subject: [PATCH] feat: add `typos` (#214) --- lua/conform/formatters/typos.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/conform/formatters/typos.lua diff --git a/lua/conform/formatters/typos.lua b/lua/conform/formatters/typos.lua new file mode 100644 index 00000000..e6ae6684 --- /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 }, +}