mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
vim-patch:b69b9d5e1753 (#24628)
Add filetype detection for eyaml files (vim/vim#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.
b69b9d5e17
Co-authored-by: Max Gautier <mg@max.gautier.name>
This commit is contained in:
parent
1904e5060e
commit
2e8f38690f
@ -1093,6 +1093,7 @@ local extension = {
|
||||
yxx = 'yacc',
|
||||
yml = 'yaml',
|
||||
yaml = 'yaml',
|
||||
eyaml = 'yaml',
|
||||
yang = 'yang',
|
||||
yuck = 'yuck',
|
||||
z8a = 'z8a',
|
||||
|
@ -720,7 +720,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '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…
Reference in New Issue
Block a user