mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.0853: filetype: kubernetes config file not recognized
Problem: filetype: kubernetes config file not recognized Solution: detect '/.kube/config' file as yaml filetype (Jonathan Lopez) closes: #11076 Signed-off-by: Jonathan Lopez <jonathanglopez@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
45e0704d96
commit
6fbf63de86
@ -2919,6 +2919,7 @@ au BufNewFile,BufRead *.y call dist#ft#FTy()
|
|||||||
|
|
||||||
" Yaml
|
" Yaml
|
||||||
au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml
|
au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml
|
||||||
|
au BufNewFile,BufRead */.kube/config setf yaml
|
||||||
|
|
||||||
" Raml
|
" Raml
|
||||||
au BufNewFile,BufRead *.raml setf raml
|
au BufNewFile,BufRead *.raml setf raml
|
||||||
|
@ -885,7 +885,8 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
xsd: ['file.xsd'],
|
xsd: ['file.xsd'],
|
||||||
xslt: ['file.xsl', 'file.xslt'],
|
xslt: ['file.xsl', 'file.xslt'],
|
||||||
yacc: ['file.yy', 'file.yxx', 'file.y++'],
|
yacc: ['file.yy', 'file.yxx', 'file.y++'],
|
||||||
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock'],
|
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
|
||||||
|
'/home/user/.kube/config'],
|
||||||
yang: ['file.yang'],
|
yang: ['file.yang'],
|
||||||
yuck: ['file.yuck'],
|
yuck: ['file.yuck'],
|
||||||
z8a: ['file.z8a'],
|
z8a: ['file.z8a'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
853,
|
||||||
/**/
|
/**/
|
||||||
852,
|
852,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user