From 939694fefcda778060cf163a829d3dedf77882c7 Mon Sep 17 00:00:00 2001 From: don philipe Date: Mon, 20 Nov 2023 09:43:06 +0100 Subject: [PATCH] Add JSON formatting shortcut --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index 2dc0909..75ea757 100644 --- a/.vimrc +++ b/.vimrc @@ -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()