From ab7b8687981d808fa25fd40c29e1a9eb2be17a4e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 30 May 2017 17:08:10 +0200 Subject: FIX: JsBeautify --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index c66a53e..f674dba 100644 --- a/.vimrc +++ b/.vimrc @@ -24,7 +24,7 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " Plug 'kchmck/vim-coffee-script', { 'for': 'coffee' } Plug 'airblade/vim-gitgutter' -" Plug 'maksimr/vim-jsbeautify', { 'for': 'js' } +Plug 'maksimr/vim-jsbeautify', { 'for': ['js', 'json'] } Plug 'ngmy/vim-rubocop', { 'for': 'ruby' } Plug 'elzr/vim-json', { 'for': ['js', 'json'] } Plug 'honza/vim-snippets' @@ -153,7 +153,7 @@ autocmd BufRead,BufNewFile *.md setlocal spell " spell check md files autocmd BufRead,BufNewFile *.markdown setlocal spell " spell check md files autocmd FileType gitcommit setlocal spell " spell check commits autocmd FileType javascript noremap :call JsBeautify() -autocmd FileType json noremap :call JsBeautify() +autocmd FileType json noremap :call JsonBeautify() autocmd FileType html noremap :call HtmlBeautify() autocmd FileType css noremap :call CSSBeautify() autocmd FileType scss noremap :call CSSBeautify() -- cgit v1.2.3