mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 22:57:03 +01:00
Add JSON formatting shortcut
This commit is contained in:
5
.vimrc
5
.vimrc
@@ -61,6 +61,11 @@ if empty(glob(data_dir . '/autoload/plug.vim'))
|
|||||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Shortcut for JSON formatting via jq
|
||||||
|
if executable('jq')
|
||||||
|
command JQ %!jq .
|
||||||
|
endif
|
||||||
|
|
||||||
" Plugin config section. Plugins will be installed under ~/.vim/plugged/
|
" Plugin config section. Plugins will be installed under ~/.vim/plugged/
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user