aboutsummaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2017-07-01 21:57:57 -0700
committermitermayer <mitermayer.reis@gmail.com>2017-07-01 21:57:57 -0700
commita4a1ca5d5bb6c09d56683db3533a77d8a89d0e35 (patch)
treeb3633c14d7a0db35d8d349f48aae54c990dd2f92 /ftplugin
parenta0c209facddb4e4254de566faf3c0acc416a43ae (diff)
downloadvim-prettier-a4a1ca5d5bb6c09d56683db3533a77d8a89d0e35.tar.xz
bugfix: json parser should not add extra comma to the end
- adding extra comma to the end properties cause creates invalid json
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/json.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftplugin/json.vim b/ftplugin/json.vim
index b5751ca..179e630 100644
--- a/ftplugin/json.vim
+++ b/ftplugin/json.vim
@@ -1,5 +1,6 @@
let b:prettier_ft_default_args = {
- \ 'parser': 'json'
+ \ 'parser': 'json',
+ \ 'trailingComma': 'none'
\ }
augroup Prettier