Migrate vim vscode jsonc filetype detection to nvim
This commit is contained in:
@@ -3,6 +3,7 @@ vim.filetype.add({
|
|||||||
[".lintstagedrc"] = "json",
|
[".lintstagedrc"] = "json",
|
||||||
},
|
},
|
||||||
pattern = {
|
pattern = {
|
||||||
|
[".*/%.vscode/.*%.json"] = "jsonc",
|
||||||
[".*/%.ssh/config%.d/.*"] = "sshconfig",
|
[".*/%.ssh/config%.d/.*"] = "sshconfig",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ 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'
|
|
||||||
" Jupyter
|
" Jupyter
|
||||||
Plug 'quarto-dev/quarto-vim'
|
Plug 'quarto-dev/quarto-vim'
|
||||||
" LaTeX
|
" LaTeX
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
" JSONC (see https://github.com/neoclide/jsonc.vim/pull/9")
|
|
||||||
au BufNewFile,BufRead */.vscode/*.json setlocal filetype=jsonc
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user