From c8f4f34f50911c3e8485b42190187eaced4b4475 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 01:02:08 +0200 Subject: [PATCH] Add 'JSONC' support --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index 0ed4fe9..d89fee0 100644 --- a/.vimrc +++ b/.vimrc @@ -114,6 +114,8 @@ Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] } Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] } Plug 'peitalin/vim-jsx-typescript', { 'for': ['typescript.tsx'] } Plug 'evanleck/vim-svelte', {'branch': 'main'} +" JSON with comments +Plug 'neoclide/jsonc.vim' " LaTeX & markdown Plug 'lervag/vimtex' Plug 'vim-pandoc/vim-pandoc-syntax' @@ -210,6 +212,9 @@ let g:javascript_conceal_return = "⇖" let g:svelte_indent_script = 0 let g:svelte_indent_style = 0 +" JSONC (see https://github.com/neoclide/jsonc.vim/pull/9") +autocmd BufNewFile,BufRead */.vscode/*.json setlocal filetype=jsonc + " SuperCollider au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc,*.scd se filetype=supercollider au Filetype supercollider packadd scvim