aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/xmllint.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/xmllint.lua')
-rw-r--r--lua/conform/formatters/xmllint.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/xmllint.lua b/lua/conform/formatters/xmllint.lua
new file mode 100644
index 0000000..3e06400
--- /dev/null
+++ b/lua/conform/formatters/xmllint.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "http://xmlsoft.org/xmllint.html",
+ description = "Despite the name, xmllint can be used to format XML files as well as lint them.",
+ },
+ command = "xmllint",
+ args = { "--format", "-" },
+}