Formatting JSON and XML
  •  1 min read

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:

"j" = ":pipe jq"
"x" = ":pipe xmlformat"