Add 'JSONC' support

master
Hektor Misplon 2022-05-11 01:02:08 +02:00
parent 14cb3ebde6
commit c8f4f34f50
1 changed files with 5 additions and 0 deletions

5
.vimrc
View File

@ -114,6 +114,8 @@ Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] } Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] }
Plug 'peitalin/vim-jsx-typescript', { 'for': ['typescript.tsx'] } Plug 'peitalin/vim-jsx-typescript', { 'for': ['typescript.tsx'] }
Plug 'evanleck/vim-svelte', {'branch': 'main'} Plug 'evanleck/vim-svelte', {'branch': 'main'}
" JSON with comments
Plug 'neoclide/jsonc.vim'
" LaTeX & markdown " LaTeX & markdown
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'vim-pandoc/vim-pandoc-syntax' 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_script = 0
let g:svelte_indent_style = 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 " SuperCollider
au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc,*.scd se filetype=supercollider au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc,*.scd se filetype=supercollider
au Filetype supercollider packadd scvim au Filetype supercollider packadd scvim