1
0
forked from aniani/vim

patch 9.0.1268: .clangd and .stylelintrc files don't get a filetype

Problem:    .clangd and .stylelintrc files don't get a filetype.
Solution:   Use yaml for .clangd and json for .stylelintrc files. (Mark
            Skelton, closes #11916)
This commit is contained in:
Mark Skelton
2023-01-31 18:57:17 +00:00
committed by Bram Moolenaar
parent d6e4c75af2
commit 9c51798a1f
3 changed files with 8 additions and 3 deletions

View File

@@ -371,6 +371,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange()
" ChordPro
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
" Clangd
au BufNewFile,BufRead .clangd setf yaml
" Clang-format
au BufNewFile,BufRead .clang-format setf yaml
@@ -1017,7 +1020,7 @@ au BufNewFile,BufRead *.json-patch setf json
au BufNewFile,BufRead *.ipynb setf json
" Other files that look like json
au BufNewFile,BufRead .prettierrc,.firebaserc setf json
au BufNewFile,BufRead .prettierrc,.firebaserc,.stylelintrc setf json
" JSONC (JSON with comments)
au BufNewFile,BufRead *.jsonc,.babelrc,.eslintrc,.jsfmtrc setf jsonc