filetype can also be set in the output buffer on an ad hoc basis.
# vim: set ft=json
But I can't change anything in the output buffer because modifiable is off.
let g:vrc_output_buffer_name = '__VRC_OUTPUT.<filetype>'
This creates a buffer with that name literally, does not add the filetype.
I suspect this is because my server doesn't set the content type.
But I know I will be getting JSON. I'd like to be able set the file type for the response as an option in my .rest file on a per request basis.
And, ideally, I'd like to be able to pipe the response through jq or json_pp before it appears, is that possible?
But I can't change anything in the output buffer because modifiable is off.
This creates a buffer with that name literally, does not add the filetype. I suspect this is because my server doesn't set the content type. But I know I will be getting JSON. I'd like to be able set the file type for the response as an option in my .rest file on a per request basis.
And, ideally, I'd like to be able to pipe the response through
jq
orjson_pp
before it appears, is that possible?