diff options
author | chefe <chefe@users.noreply.github.com> | 2024-01-02 17:05:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 08:05:39 -0800 |
commit | c50ba4baad90f02840cc31ee745b09078b7a1777 (patch) | |
tree | 7c1e3907cfa906baed0c5520ef7d64f1ec38d13d /lua/conform/formatters | |
parent | ad2b5ecd907128ed1b66b1cf4bed57902ef836ee (diff) |
feat: add xmllint formatter (#259)
* feat: add xmllint formatter
* doc: shorten xmllint description
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/xmllint.lua | 9 |
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", "-" }, +} |