Added minify script to json

This commit is contained in:
James Patrick 2022-08-30 14:29:18 -04:00
parent 09f3af9543
commit 5bb4fda4d2

View File

@ -1,2 +1,4 @@
com! MinifyJSON :%!python3 -c 'import json, sys;json.dump(json.load(sys.stdin), sys.stdout)'
com! FormatJSON :%!python3 -m json.tool com! FormatJSON :%!python3 -m json.tool
map <buffer><leader>= :FormatJSON<cr> map <buffer><leader>= :FormatJSON<cr>
set foldmethod=syntax