diff --git a/lua/hurl/utils.lua b/lua/hurl/utils.lua index 1ab4ab3..193ab4e 100644 --- a/lua/hurl/utils.lua +++ b/lua/hurl/utils.lua @@ -105,7 +105,11 @@ end ---@return string[] | nil util.format = function(body, type) local formatters = _HURL_GLOBAL_CONFIG.formatters - or { json = { 'jq' }, html = { 'prettier', '--parser', 'html' }, xml = { 'tidy', '-xml', '-i', '-q' } } + or { + json = { 'jq' }, + html = { 'prettier', '--parser', 'html' }, + xml = { 'tidy', '-xml', '-i', '-q' }, + } -- If no formatter is defined, return the body if not formatters[type] then @@ -172,7 +176,7 @@ end util.is_xml_response = function(content_type) return string.find(content_type, 'text/xml') ~= nil - or string.find(content_type, 'application/xml') ~= nil + or string.find(content_type, 'application/xml') ~= nil end --- Check if nvim is running in nightly or stable version