diff options
author | Mark Skelton <mdskelton99@gmail.com> | 2023-01-31 18:57:17 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-31 18:57:17 +0000 |
commit | 9c51798a1f3b79ace5ae0551a8bb122025ac94ed (patch) | |
tree | a3ed359424c2c43b439b359396574ed134d7b2dc /runtime | |
parent | d6e4c75af2d6435794f1a9259141d6d7c1923b4c (diff) |
patch 9.0.1268: .clangd and .stylelintrc files don't get a filetypev9.0.1268
Problem: .clangd and .stylelintrc files don't get a filetype.
Solution: Use yaml for .clangd and json for .stylelintrc files. (Mark
Skelton, closes #11916)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 200153e75e..a06b450d0a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 |