mirror of
https://github.com/don-philipe/dotfiles.git
synced 2026-11-06 16:14:12 +01:00
Add JSON formatting shortcut
This commit is contained in:
1 parent
be8ff054ee
commit
939694fefc
1 file changed
+5
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user