feat(formatting): format xhtml with html-tidy
This commit is contained in:
@@ -34,8 +34,8 @@ return {
|
||||
nix = { "alejandra" },
|
||||
rust = { "rustfmt", lsp_format = "fallback" },
|
||||
sh = { "shellharden", "shfmt" },
|
||||
xml = { "xmllint" },
|
||||
xhtml = { "xmllint" },
|
||||
xml = { "xmllint", "xmltidy" },
|
||||
xhtml = { "xmllint", "xmltidy" },
|
||||
markdown = { "mdfmt" },
|
||||
|
||||
html = { "prettierd", "prettier", stop_after_first = true },
|
||||
@@ -87,6 +87,12 @@ return {
|
||||
mdfmt = {
|
||||
command = "mdfmt",
|
||||
},
|
||||
-- Uses HTML Tidy
|
||||
xmltidy = {
|
||||
inherit = false,
|
||||
command = "tidy",
|
||||
args = { "-xml", "-indent", "yes", "2", "-wrap", "100", "-" },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user