Make json files fold by syntax

This commit is contained in:
Jonathan Hodgson 2017-07-05 13:44:15 +01:00
parent 449e3ed76f
commit 9efe5ee13e

6
.vimrc
View file

@ -350,6 +350,12 @@ augroup file_vim
autocmd FileType vim setlocal foldmethod=marker foldenable
augroup END
" Make json fold using syntax {{{2
augroup file_json
autocmd!
autocmd FileType json setlocal foldmethod=syntax foldenable
augroup END
""set es6 files to javascript {{{2
augroup detectES6
autocmd!