aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/codespell.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/codespell.lua')
-rw-r--r--lua/conform/formatters/codespell.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/conform/formatters/codespell.lua b/lua/conform/formatters/codespell.lua
new file mode 100644
index 0000000..ca07415
--- /dev/null
+++ b/lua/conform/formatters/codespell.lua
@@ -0,0 +1,14 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/codespell-project/codespell",
+ description = "Check code for common misspellings.",
+ },
+ command = "codespell",
+ stdin = false,
+ args = {
+ "$FILENAME",
+ "--write-changes",
+ "--check-hidden", -- conform's temp file is hidden
+ },
+}