plugins.rest.settings.result.behavior.formatters.html

HTML formatter.

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
    \'\';
  }
''

Type: null or string or raw lua code

Default: null

Declared by:

plugins.rest.settings.result.behavior.formatters.json

JSON formatter.

Plugin default: "jq"

Type: null or string or raw lua code

Default: null

Declared by: