From 89d9db28221d87298d12179f946c564b375265c2 Mon Sep 17 00:00:00 2001 From: John te Bokkel Date: Fri, 19 Apr 2024 14:29:45 -0700 Subject: [PATCH] feat: add dos2unix converter script --- lua/conform/formatters/dos2unix.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/conform/formatters/dos2unix.lua diff --git a/lua/conform/formatters/dos2unix.lua b/lua/conform/formatters/dos2unix.lua new file mode 100644 index 00000000..26bd5399 --- /dev/null +++ b/lua/conform/formatters/dos2unix.lua @@ -0,0 +1,12 @@ +local util = require("conform.util") +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://dos2unix.sourceforge.io/", + description = "Convert from dos line endings to unix line endings", + }, + command = "dos2unix", + args = { + "--to-stdout", + }, +}