mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0731: clang-tidy configuration files are not recognized (#20620)
Problem: clang-tidy configuration files are not recognized.
Solution: Recognize clang-tidy files as yaml. (closes vim/vim#11350)
af40f9af33
This commit is contained in:
parent
eeeb6c80d8
commit
4f305fba14
@ -370,6 +370,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange()
|
||||
" ChordPro
|
||||
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
|
||||
|
||||
" Clang-tidy
|
||||
au BufNewFile,BufRead .clang-tidy setf yaml
|
||||
|
||||
" Clean
|
||||
au BufNewFile,BufRead *.dcl,*.icl setf clean
|
||||
|
||||
|
@ -1666,6 +1666,7 @@ local filename = {
|
||||
fglrxrc = 'xml',
|
||||
['/etc/blkid.tab'] = 'xml',
|
||||
['/etc/blkid.tab.old'] = 'xml',
|
||||
['.clang-tidy'] = 'yaml',
|
||||
['/etc/zprofile'] = 'zsh',
|
||||
['.zlogin'] = 'zsh',
|
||||
['.zlogout'] = 'zsh',
|
||||
|
@ -641,7 +641,7 @@ let s:filename_checks = {
|
||||
\ 'xsd': ['file.xsd'],
|
||||
\ 'xslt': ['file.xsl', 'file.xslt'],
|
||||
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
|
||||
\ 'yaml': ['file.yaml', 'file.yml'],
|
||||
\ 'yaml': ['file.yaml', 'file.yml', '.clang-tidy'],
|
||||
\ 'yang': ['file.yang'],
|
||||
\ 'z8a': ['file.z8a'],
|
||||
\ 'zig': ['file.zig'],
|
||||
|
Loading…
Reference in New Issue
Block a user