plugins.rest.extraOptions.result.behavior.formatters.html

HTML formatter.

Type: null or string or raw lua code

Default: null

Plugin default:

''
  {
    __raw = \'\'
      function(body)
        if vim.fn.executable("tidy") == 0 then
          return body, { found = false, name = "tidy" }
        end
        local fmt_body = vim.fn.system({
          "tidy",
          "-i",
          "-q",
          "--tidy-mark",      "no",
          "--show-body-only", "auto",
          "--show-errors",    "0",
          "--show-warnings",  "0",
          "-",
        }, body):gsub("\n$", "")
  
        return fmt_body, { found = true, name = "tidy" }
      end
    \'\';
  }
''

Declared by:

plugins.rest.extraOptions.result.behavior.formatters.json

JSON formatter.

Type: null or string or raw lua code

Default: null

Plugin default: "jq"

Declared by: