summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-12-30 12:13:50 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-12-30 12:13:50 +0100
commit8af4f8e6c04b163d39de4327fca7f69cce78c0ab (patch)
tree23f7dff144bd3cfe95d298245b5017ebadd2c30c /ftdetect/polyglot.vim
parente5668602cc89f3298a1ab936b082e82519aa6a50 (diff)
downloadvim-polyglot-8af4f8e6c04b163d39de4327fca7f69cce78c0ab.tar.gz
vim-polyglot-8af4f8e6c04b163d39de4327fca7f69cce78c0ab.zip
Add jsonc, closes #635
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 29a4a2c7..85c933e3 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -142,6 +142,10 @@ set cpo&vim
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
+if !has_key(g:polyglot_is_disabled, 'jsonc')
+ au BufNewFile,BufRead *.cjson,*.jsonc,{.,}babelrc,{.,}eslintrc.json,{.,}jshintrc,{.,}jslintrc,{.,}mocharc.json,coc-settings.json,coffeelint.json,jsconfig.json,tsconfig.json setf jsonc
+endif
+
if !has_key(g:polyglot_is_disabled, 'mint')
au BufNewFile,BufRead *.mint setf mint
endif