diff options
Diffstat (limited to 'lua/conform/formatters')
-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 }, +} |