forked from aniani/vim
Add filetype detection for eyaml files (#12659)
https://github.com/voxpupuli/hiera-eyaml/ uses and produces the eyaml format, which is simply yaml with some encrypted values. It's convenient to edit the file without decrypting when not touching encrypted values (or when you don't have access to the decryption key), which is why vim should treat those files as yaml files.
This commit is contained in:
parent
958e15bb1c
commit
b69b9d5e17
@ -2544,7 +2544,7 @@ au BufNewFile,BufRead *.yy,*.yxx,*.y++ setf yacc
|
||||
au BufNewFile,BufRead *.y call dist#ft#FTy()
|
||||
|
||||
" Yaml
|
||||
au BufNewFile,BufRead *.yaml,*.yml setf yaml
|
||||
au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml
|
||||
|
||||
" Raml
|
||||
au BufNewFile,BufRead *.raml setf raml
|
||||
|
@ -799,7 +799,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
xsd: ['file.xsd'],
|
||||
xslt: ['file.xsl', 'file.xslt'],
|
||||
yacc: ['file.yy', 'file.yxx', 'file.y++'],
|
||||
yaml: ['file.yaml', 'file.yml', '.clangd', '.clang-format', '.clang-tidy'],
|
||||
yaml: ['file.yaml', 'file.yml', 'file.eyaml', '.clangd', '.clang-format', '.clang-tidy'],
|
||||
yang: ['file.yang'],
|
||||
yuck: ['file.yuck'],
|
||||
z8a: ['file.z8a'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user