Formatting JSON and XML
Selecting and then using pipe
can be used to format data formats I don't need LSPs setup for. This also works for multiple selections. Each selection will be piped to the program and the successful output will replace the selection
:pipe jq
To format json
:pipe xmlformat
To format XML
They can also be bound to keys in the config:
[]
= ":pipe jq"
= ":pipe xmlformat"