aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-06-13 22:24:31 +0200
committerjdhao <jdhao@hotmail.com>2023-06-13 22:25:25 +0200
commitee38046ebc83b5dc91739a9c2a8d60cd9725e206 (patch)
tree47758bfe7c4b3b09063b18283bba2f136489bffc /plugin
parent6c873a32da5410b6accbe8da476e334e2918901f (diff)
Add folding support for JSON files
Diffstat (limited to 'plugin')
-rw-r--r--plugin/command.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/command.vim b/plugin/command.vim
index 5ed7b73..68b11f4 100644
--- a/plugin/command.vim
+++ b/plugin/command.vim
@@ -45,3 +45,6 @@ function! s:md_to_pdf() abort
echoerr "Error running command"
endif
endfunction
+
+" json format
+command! -range JSONFormat <line1>,<line2>!python -m json.tool