Add JSON formatting shortcut

This commit is contained in:
don philipe
2023-11-20 09:43:06 +01:00
parent be8ff054ee
commit 939694fefc

5
.vimrc
View File

@@ -61,6 +61,11 @@ if empty(glob(data_dir . '/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Shortcut for JSON formatting via jq
if executable('jq')
command JQ %!jq .
endif
" Plugin config section. Plugins will be installed under ~/.vim/plugged/
call plug#begin()