Migrate vim vscode jsonc filetype detection to nvim

disko
Hektor Misplon 2025-09-26 09:03:26 +02:00
parent 58df131415
commit 6ed4de0b11
3 changed files with 1 additions and 5 deletions

View File

@ -3,6 +3,7 @@ vim.filetype.add({
[".lintstagedrc"] = "json",
},
pattern = {
[".*/%.vscode/.*%.json"] = "jsonc",
[".*/%.ssh/config%.d/.*"] = "sshconfig",
},
})

View File

@ -14,8 +14,6 @@ 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'
" Jupyter
Plug 'quarto-dev/quarto-vim'
" LaTeX

View File

@ -1,3 +0,0 @@
" JSONC (see https://github.com/neoclide/jsonc.vim/pull/9")
au BufNewFile,BufRead */.vscode/*.json setlocal filetype=jsonc