aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/conform/formatters/typos.lua11
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 },
+}