Permalink
Browse files

jsbeautify.vim 支持的文件类型中添加 json

  • Loading branch information...
1 parent bfba5ce commit 3f53e549c7f6901844b4efcc1cb96e1297c6338d @lilydjwg committed Jan 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/jsbeautify.vim
@@ -281,7 +281,7 @@ endfunction
function! s:is_js()
" lilydjwg: 这样判断文件类型会更好
- return &ft == "javascript"
+ return &ft == "javascript" || &ft == "json"
" return expand("%:e") == "js"
endfunction

0 comments on commit 3f53e54

Please sign in to comment.