Skip to content

Commit

Permalink
chore: unretire xmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP committed Apr 26, 2024
1 parent 88821b6 commit e22c380
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lua/null-ls/builtins/formatting/xmllint.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")

local FORMATTING = methods.internal.FORMATTING

return h.make_builtin({
name = "xmllint",
meta = {
url = "http://xmlsoft.org/xmllint.html",
description = "Despite the name, xmllint can be used to format XML files as well as lint them, and that's the mode this builtin is using.",
},
method = FORMATTING,
filetypes = { "xml" },
generator_opts = {
command = "xmllint",
args = { "--format", "-" },
to_stdin = true,
},
factory = h.formatter_factory,
})

0 comments on commit e22c380

Please sign in to comment.